-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
EZP-28722: Add unit tests to Compiler Passes #305
EZP-28722: Add unit tests to Compiler Passes #305
Conversation
|
||
class ComponentPass implements CompilerPassInterface | ||
{ | ||
const TAG_NAME = 'ezplatform.admin_ui.component'; | ||
public const TAG_NAME = 'ezplatform.admin_ui.component'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be unified across all new PRs? it is not in PSR afair?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't go with that change in this PR. I see PHPStorm is proposing this change but this will introduce too many inconsistencies in the codebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpicks but would be nice to change.
@@ -16,9 +16,12 @@ | |||
*/ | |||
class TabPass implements CompilerPassInterface | |||
{ | |||
const TAG_TAB = 'ezplatform.tab'; | |||
public const TAG_TAB = 'ezplatform.tab'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
use Symfony\Component\DependencyInjection\Reference; | ||
|
||
/** | ||
* Supplies config Providers to the Aggregator. | ||
*/ | ||
class UiConfigProviderPass implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container) | ||
public const TAG_CONFIG_PROVIDER = 'ezplatform.admin_ui.config_provider'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove public
4a3a4a0
to
eab56e7
Compare
Add unit tests to Compiler Passes
Checklist:
$ composer fix-cs
)