From 7ab8f8702e10eca9f446ee09d1049d6716703521 Mon Sep 17 00:00:00 2001 From: RafaelKa Date: Mon, 26 Aug 2013 17:15:56 +0200 Subject: [PATCH] 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\\.*'] ------ ). --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 92cc54c..19ef9be 100644 --- a/composer.json +++ b/composer.json @@ -20,8 +20,8 @@ } , "autoload": { "psr-0": { + "Ratchet": "src", "Ratchet\\Tests": "tests" - , "Ratchet": "src" } } , "require": {