Skip to content

Commit

Permalink
Merge pull request #14 from SimLibaud/sf4-compliant
Browse files Browse the repository at this point in the history
Sf4 compliant
  • Loading branch information
SimLibaud authored Jun 14, 2019
2 parents 83a515b + 4fbcc8a commit 3e4f256
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@
<service id="sil_route_security.route_security_tools" class="Sil\RouteSecurityBundle\WebProfiler\RouteSecurityTools" public="false">
<argument type="service" id="sil_route_security.access_control"></argument>
<argument type="service" id="sil_route_security.route_to_role_converter"></argument>
<tag name="data_collector" id="sil_route_security.route_security_tools" template="SilRouteSecurityBundle:WebProfiler:widget.html.twig"></tag>
<tag name="data_collector" id="sil_route_security.route_security_tools" template="@SilRouteSecurity/WebProfiler/widget.html.twig"></tag>
</service>

<service id="sil_route_security.roles_provider" class="Sil\RouteSecurityBundle\Role\RolesProvider">
<argument type="service" id="sil_route_security.route_to_role_converter"></argument>
<argument type="expression">service('sil_route_security.access_control').getAllSecuredRoutes()</argument>
</service>
<service id="Sil\RouteSecurityBundle\Role\RolesProvider" alias="sil_route_security.roles_provider"/>

</services>
</container>
2 changes: 1 addition & 1 deletion Resources/views/WebProfiler/widget.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %}
{% extends '@WebProfiler/Profiler/layout.html.twig' %}

{% block toolbar %}
<div class="sf-toolbar-block {#{{ (collector.isAccessControlEnable and collector.isRouteSecure) ? 'sf-toolbar-status-red' }}#}">
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
],
"require": {
"php": "~5.6 || ~7.0",
"symfony/framework-bundle": "^2.7 || ^3.0",
"symfony/security": "^2.7 || ^3.0",
"symfony/yaml": "^2.7 || ^3.0",
"symfony/expression-language": "^2.7 || ^3.0",
"symfony/framework-bundle": "^2.7 || ^3.0 || ^4.0",
"symfony/security": "^2.7 || ^3.0 || ^4.0",
"symfony/yaml": "^2.7 || ^3.0 || ^4.0",
"symfony/expression-language": "^2.7 || ^3.0 || ^4.0",
"twig/twig": "^1.28 || ^2.0"
},
"require-dev": {
Expand Down

0 comments on commit 3e4f256

Please sign in to comment.