composers autoload order for compatibility with TYPO3 Flow framework

This small change allow using the cboden/Ratchet out of the box with TYPO3 Flow .

Unfortunately TYPO3 Flow can not load second entry given in the manifest for autoloading (Source: http://docs.typo3.org/flow/TYPO3FlowDocumentation/stable/TheDefinitiveGuide/PartIII/PackageManagement.html#using-3rd-party-packages )

Only one of both tricks is needed in Flow's Settings.yaml:

:1. excluding annotations
------
TYPO3:
  Flow:
    reflection:
      ignoredTags: ['event', 'temporary', 'type', 'note']
------
:2. excluding this package from Object Framework (Note: this makes AOP for Ratchet off)
------
TYPO3:
  Flow:
    object:
      excludeClasses:
        'cboden.Ratchet': ['Ratchet\\.*']
------
).
This commit is contained in:
RafaelKa 2013-08-26 17:15:56 +02:00
parent fd18e2658d
commit 7ab8f8702e

View File

@ -20,8 +20,8 @@
} }
, "autoload": { , "autoload": {
"psr-0": { "psr-0": {
"Ratchet": "src",
"Ratchet\\Tests": "tests" "Ratchet\\Tests": "tests"
, "Ratchet": "src"
} }
} }
, "require": { , "require": {