[TASK] Do not force optimize-autoloader in composer.json 75/53475/6
authorArmin Vieweg <armin@v.ieweg.de>
Fri, 14 Jul 2017 15:26:23 +0000 (17:26 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Wed, 19 Jul 2017 06:50:04 +0000 (08:50 +0200)
This option (in config section) forced composer to create
optimized autoloader.

This improves speed but has some disadvantages:
- creating optimized autoloader takes longer
- no possibility exists to deactivate optimized autoloader
  from CLI, once it's set in composer.json config section

After this patch is applied, deployment servers need to call
composer install with -o flag, in order to enable optimized

Releases: master
Resolves: #81868
Change-Id: I45321500353d34d6b63813473262b4cc1dd2036d
Reviewed-on: https://review.typo3.org/53475
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benjamin Kluge <b.kluge@neusta.de>
Tested-by: Benjamin Kluge <b.kluge@neusta.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Important-81868-OptimizeAutoloaderIsNoLongerForcedInComposerjson.rst [new file with mode: 0644]

index c767f37..50e44b2 100644 (file)
@@ -24,7 +24,6 @@
                "news": "nntp://lists.typo3.org"
        "config": {
-               "optimize-autoloader": true,
                "bin-dir": "bin"
        "bin": [
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Important-81868-OptimizeAutoloaderIsNoLongerForcedInComposerjson.rst b/typo3/sysext/core/Documentation/Changelog/master/Important-81868-OptimizeAutoloaderIsNoLongerForcedInComposerjson.rst
new file mode 100644 (file)
index 0000000..1f5f393
--- /dev/null
@@ -0,0 +1,27 @@
+.. include:: ../../Includes.txt
+Important: #81868 - "Optimize autoloader" is no longer forced in composer.json
+See :issue:`81868`
+The option "optimize autoloader" (in config section of TYPO3's own composer.json) forced composer to create
+optimized autoloader files.
+This improves speed but had three disadvantages:
+- creating optimized autoloader may take much longer
+- new namespaces (folders) during development require an additional `composer dump`
+- no possibility existing to deactivate optimized autoloader
+  from CLI, once it's set in composer.json config section
+The option was removed from TYPO3's own composer.json, so deployment servers using that need to call
+composer install with the -o flag, in order to enable the optimized autoloader.
+This change only affects users that are using a non-composer installation but doing a composer install
+in TYPO3's root folder - if you are using your own composer.json you won't be affected.
+.. index:: CLI, PHP-API