Skip to content

Commit

Permalink
Use composer to manage CakePHP dependency, update CakePHP to 2.10.*
Browse files Browse the repository at this point in the history
  • Loading branch information
lGuillaume124 committed Aug 26, 2018
1 parent 1e8db5a commit 8aa52d3
Show file tree
Hide file tree
Showing 962 changed files with 102 additions and 275,605 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/lib/Cake/Console/Templates/skel/tmp/
/plugins
/vendors
/Vendor
/build
/dist
/tags
Expand Down
5 changes: 0 additions & 5 deletions .htaccess

This file was deleted.

17 changes: 14 additions & 3 deletions app/Console/cake.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,26 @@
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/

$ds = DIRECTORY_SEPARATOR;
$dispatcher = 'Cake' . $ds . 'Console' . $ds . 'ShellDispatcher.php';
if (!defined('DS')) {
define('DS', DIRECTORY_SEPARATOR);
}

$dispatcher = 'Cake' . DS . 'Console' . DS . 'ShellDispatcher.php';

if (function_exists('ini_set')) {
$root = dirname(dirname(dirname(__FILE__)));
$appDir = basename(dirname(dirname(__FILE__)));
$install = $root . DS . 'lib';
$composerInstall = $root . DS . 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib';

if (file_exists($composerInstall . DS . $dispatcher)) {
$install = $composerInstall;
}

// the following line differs from its sibling
// /lib/Cake/Console/Templates/skel/Console/cake.php
ini_set('include_path', $root . $ds . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
ini_set('include_path', $install . PATH_SEPARATOR . ini_get('include_path'));
unset($root, $appDir, $install, $composerInstall);
}

if (!include $dispatcher) {
Expand Down
2 changes: 1 addition & 1 deletion app/webroot/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
* The following line differs from its sibling
* /lib/Cake/Console/Templates/skel/webroot/index.php
*/
//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib');

/**
* Editing below this line should NOT be necessary.
Expand Down
20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "sonerezh/sonerezh",
"description": "A self-hosted, web-based application to stream your music, everywhere.",
"type": "project",
"require": {
"cakephp/cakephp": "2.10.*",
"ext-gd": "*"
},
"license": "AGPL-3.0-or-later",
"authors": [
{
"name": "Sonerezh",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"config": {
"vendor-dir": "Vendor/"
}
}
66 changes: 66 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8aa52d3

Please sign in to comment.