Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(application): Introduces Elgg\Application for loading/booting…
… Elgg Removes references to engine/start.php in docs. Removes load_plugins(). Deprecates inclusion of start.php for booting the core. Moves settings loading to Elgg\Config and allows setting the config file path or bypasses loading a settings file. Allows Elgg\Config to not use the global $CONFIG. Allows use of Elgg\Database without booting core via the Application. Refactors Elgg\CacheHandler and several other direct-call scripts to use Application Allows the cache handler, export handlers, and thumbnail server to work using the CLI server. Allows the Logger to be injected into Database during boot for lighter partial boot (e.g. cache_handler). Removes unneeded join date GET param from profile icon URLs. Refs #7721
- Loading branch information
Showing
42 changed files
with
757 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,34 @@ | |||
<?php | |||
/** | |||
* We handle here two possible locations of composer-generated autoload file. One is directly in Elgg directory | |||
* when not using as dependency, other is in the main project dir, parent to this one. | |||
*/ | |||
|
|||
$paths = [ | |||
__DIR__ . '/vendor/autoload.php', | |||
__DIR__ . '/../../../vendor/autoload.php', | |||
]; | |||
|
|||
foreach ($paths as $path) { | |||
if (!is_file($path)) { | |||
continue; | |||
} | |||
|
|||
if (!is_readable($path)) { | |||
echo "'$path' exists but is not readable by your webserver.\n"; | |||
break; | |||
} | |||
|
|||
$autoloader = (include $path); | |||
if (!$autoloader) { | |||
echo "'$path' was present but did not return a autoloader.\n"; | |||
break; | |||
} | |||
|
|||
return $autoloader; | |||
} | |||
|
|||
echo "You must set up the project dependencies. Run the following commands:\n" . | |||
"curl -s http://getcomposer.org/installer | php\n" . | |||
"php composer.phar install"; | |||
exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.