-
Notifications
You must be signed in to change notification settings - Fork 33
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
add compatibility with Symfony 7.0+ #96
base: master
Are you sure you want to change the base?
Changes from all commits
0f55496
910964f
f31467c
944e503
af39c54
51bfe9f
f2e24b4
bcb2eb0
ce27e90
0473cb6
a31c29d
30b1579
1f66be7
717c6cc
5f28cfd
2d67760
23ce6cf
e8a4cee
2466d58
0ceea91
58a03fb
b5cd4f4
482081b
d9b65e4
f1072fc
45923c7
116cff8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
class Configuration implements ConfigurationInterface | ||
{ | ||
#[\ReturnTypeWillChange] | ||
public function getConfigTreeBuilder() | ||
public function getConfigTreeBuilder(): TreeBuilder | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the return type change because of dropping TwigBundle v3.4? |
||
{ | ||
$treeBuilder = new TreeBuilder('apy_breadcrumb_trail'); | ||
// BC layer for symfony/config < 4.2 | ||
|
@@ -27,7 +27,7 @@ public function getConfigTreeBuilder() | |
->scalarNode('template') | ||
->defaultValue('@APYBreadcrumbTrail/breadcrumbtrail.html.twig') | ||
->end() | ||
->end() | ||
->end() | ||
; | ||
|
||
return $treeBuilder; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,12 @@ | |
<tag name="kernel.event_listener" event="kernel.controller" method="onKernelController" priority="-1" /> | ||
</service> | ||
<service id="apy_breadcrumb_trail.annotation.listener" alias="APY\BreadcrumbTrailBundle\EventListener\BreadcrumbListener" public="true" /> | ||
|
||
<service id="Doctrine\Common\Annotations\AnnotationReader" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doctrine annotations is optional (part of Also, as autowiring on this bundle is enabled by default, there should not be a need to define this service from another dependency. |
||
|
||
<service id="APY\BreadcrumbTrailBundle\EventListener\BreadcrumbListener"> | ||
<argument type="service" id="Doctrine\Common\Annotations\AnnotationReader" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you try getting this done with the autowiring that is enabled on this bundle? |
||
<tag name="kernel.event_listener" event="kernel.controller" method="onKernelController" priority="-1" /> | ||
</service> | ||
</services> | ||
</container> |
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.
Is the removals of
null
a result of thenullable_type_declaration_for_default_null_value
PHP CS Fixer change? Not having them set tonull
could after construction potentially lead to exceptions on read when not being instantiated.