Skip to content

Using event names instead class names#374

Merged
bytehead merged 2 commits into1up-lab:feature/symfony-5from
patrickbussmann:feature/symfony-5
Feb 20, 2020
Merged

Using event names instead class names#374
bytehead merged 2 commits into1up-lab:feature/symfony-5from
patrickbussmann:feature/symfony-5

Conversation

@patrickbussmann
Copy link
Copy Markdown
Contributor

Using event name is documented in Symfony 5 docs.

It takes two arguments: the Event instance to pass to each listener of that event and the name of the event to dispatch

See https://symfony.com/doc/master/components/event_dispatcher.html#dispatch-the-event.

@patrickbussmann patrickbussmann mentioned this pull request Feb 20, 2020
@bytehead bytehead force-pushed the feature/symfony-5 branch 2 times, most recently from 028d75f to 97f9028 Compare February 20, 2020 18:20
@bytehead bytehead merged commit 69ced94 into 1up-lab:feature/symfony-5 Feb 20, 2020
@bytehead
Copy link
Copy Markdown
Member

Thank you!

@stipic
Copy link
Copy Markdown

stipic commented Feb 20, 2020

Thanks!

bytehead added a commit that referenced this pull request Mar 27, 2020
* Dealing with the modified method signature for UploadedFile which with strict type checking in SF 4.4 fails

* SF 4.4 swallows the exception so it never makes it as far as the test

* Adding SF 5.0

* Adding SF 5.0 and updating PHP versions to currently supported

* Switching config to support SF 5.0's removal of the kernal.root_dir and removal of the templating config variable

* Even for non-uploaded files we have to deal with the new File signature otherwise the size ends up as the error

* Explicitly set framework.test to true to prevent Travis test failure

* Set return type for tearDown method as required by SF 5

* Update to support Twig 3

Replace global functions with namespaced functions

* Add Twig requirement due to Twig Extension

* Removing SF 3.4 from Travis as discussed

* Removed Symfony 3.x stuff

* Remove comment

* CS fixer

* Remove 3.x, add 5.x

* WIP PHPStan level 5

* Symfony 4.4

* Adjust version constraints

* WIP PHPStan level 6

* Fix issues

* Rearranged directory structure

* Don't reboot test client every request

* Enable PHPStan level 6

* Fix PHPStan

* Using event names instead class names (#374)

* Fix PHPStan

* CS

* Use Github actions instead of travis

* Add templates

* Proper names for tests

* Remove tests on windows

* Reverts mistakes (see #375, thanks @ErnadoO)

* Add configuration for stale bot

* Fixes

* Remove unused

* Return finder instance instead of array

* Enable PHPStan level = max

* Remove unused

* Dispatch also specific events (thanks to @enumag)

* PHPUnit 8.5

Co-authored-by: Steve Winter <steve@msdev.co.uk>
Co-authored-by: Daryl Gubler <daryl@dev88.co>
Co-authored-by: Steve Winter <steveWinter@users.noreply.github.com>
Co-authored-by: Patrick Bußmann <patrick.bussmann@bussmann-it.de>
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.

3 participants