Skip to content

Commit

Permalink
Merge pull request #2 from SimLibaud/feature/unused-dependency
Browse files Browse the repository at this point in the history
Remove unused dependency
  • Loading branch information
SimLibaud committed Jul 24, 2017
2 parents cfa0c61 + fd46c2f commit b126c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<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>
<argument type="service" id="security.token_storage"></argument>
<tag name="data_collector" id="sil_route_security.route_security_tools" template="SilRouteSecurityBundle:WebProfiler:widget.html.twig"></tag>
</service>

Expand Down
7 changes: 2 additions & 5 deletions WebProfiler/RouteSecurityTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;

/**
* Class RouteSecurityTools
Expand All @@ -23,13 +22,11 @@ class RouteSecurityTools extends DataCollector

private $accessControl;
private $routeToRoleConverter;
private $token;

public function __construct(AccessControl $accessControl, NamingStrategyInterface $routeToRoleConverter, TokenStorageInterface $token)
public function __construct(AccessControl $accessControl, NamingStrategyInterface $routeToRoleConverter)
{
$this->accessControl = $accessControl;
$this->routeToRoleConverter = $routeToRoleConverter;
$this->token = $token;
}

/**
Expand Down Expand Up @@ -64,4 +61,4 @@ public function getName()
{
return 'sil_route_security.route_security_tools';
}
}
}

0 comments on commit b126c42

Please sign in to comment.