Skip to content

Commit

Permalink
Merge pull request #2288 from neos/albe-composer-autoloader
Browse files Browse the repository at this point in the history
!!! TASK: Make composer autoloader the default
  • Loading branch information
kitsunet authored Dec 7, 2020
2 parents 596d1ee + 8b4ec6b commit 4ab5fc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Neos.Flow/Classes/Core/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,11 @@ protected function defineConstants()
define('FLOW_PATH_TEMPORARY', $temporaryDirectoryPath);
}

// Not using this flag and loading classes via our class loader is deprecated
// and we will remove class loading from our loader in the next major of Flow (5.0).
$onlyUseComposerAutoLoaderForPackageClasses = false;
if (in_array(self::getEnvironmentConfigurationSetting('FLOW_ONLY_COMPOSER_LOADER'), [true, 'true', 1, '1'])) {
$onlyUseComposerAutoLoaderForPackageClasses = true;
// Setting this flag to false will enable the custom Class Loader on top of the default autoloading provided by composer
// @deprecated since Version 4.3. Packages should use the default composer autoloading mechanism
$onlyUseComposerAutoLoaderForPackageClasses = true;
if (in_array(self::getEnvironmentConfigurationSetting('FLOW_ONLY_COMPOSER_LOADER'), [false, 'false', 0, '0'])) {
$onlyUseComposerAutoLoaderForPackageClasses = false;
}

define('FLOW_ONLY_COMPOSER_LOADER', $onlyUseComposerAutoLoaderForPackageClasses);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ Some specific flow behaviour can also be configured with a couple of environment
| FLOW_LOCKHOLDINGPAGE | Use to specify the html page shown when the site is locked |
| | This is relative to the Packages directory |
+---------------------------+------------------------------------------------------------+
| FLOW_ONLY_COMPOSER_LOADER | Set to true (1) to only use composer autoloader |
| FLOW_ONLY_COMPOSER_LOADER | Set to false (0) to use the custom ClassLoader on top of |
| | the regular mechanism provided by composer (deprecated) |
+---------------------------+------------------------------------------------------------+


Expand Down

0 comments on commit 4ab5fc0

Please sign in to comment.