Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the original Symfony EventDispatcher #21

Closed
wants to merge 1 commit into from

Conversation

Brammm
Copy link

@Brammm Brammm commented Aug 31, 2016

Now uses an implementation that uses callbackInvoker

Now uses an implementation that supports callbackInvoker

Let AssociativeArrayResolver handle event parameter

Use container instead of callbackInvoker

Revert "Use container instead of callbackInvoker"

This reverts commit d2a8af8.

Send Container to parent Invoker
@@ -28,6 +28,6 @@ public function __construct(ContainerInterface $container)
new TypeHintResolver,
new TypeHintContainerResolver($container),
new NumericArrayResolver,
]));
]), $container);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looked like a bug to me, at least my implementation didn't work without this.

Without this, the CallbackInvoker doesn't send $container to it's parent, so when a call() was made, it wouldn't actually do a lookup in the container...

@Brammm
Copy link
Author

Brammm commented Aug 31, 2016

Tests are currently broken because of changes in Silex v2.0.2: silexphp/Silex@v2.0.1...v2.0.2

Fixing on silex/silex v2.0.1 makes tests pass.

@Brammm Brammm closed this Apr 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant