mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +03:00
Pass AssetUrlGenerator via constructor to ControllerResolver
This commit is contained in:
parent
2bb6899c33
commit
e514b1590b
@ -85,9 +85,9 @@ class Application implements RouterAwareInterface, AuthenticationManagerAwareInt
|
||||
$this->assetUrlGenerator = new AssetUrlGenerator();
|
||||
$this->controllerResolver = new ControllerResolver(
|
||||
$this->router,
|
||||
$this->authenticationManager
|
||||
$this->authenticationManager,
|
||||
$this->assetUrlGenerator
|
||||
);
|
||||
$this->controllerResolver->setAssetUrlGenerator($this->assetUrlGenerator);
|
||||
$this->accessCheckResolver = new CheckResolver($this->authenticationManager);
|
||||
}
|
||||
|
||||
|
@ -53,11 +53,17 @@ class ControllerResolver implements
|
||||
* @param RouterInterface $router Router instance.
|
||||
* @param AuthenticationManagerInterface $manager Authentication manager
|
||||
* instance.
|
||||
* @param AssetUrlGeneratorInterface $url_generator An instance of Asset
|
||||
* URL generator
|
||||
*/
|
||||
public function __construct(RouterInterface $router, AuthenticationManagerInterface $manager)
|
||||
{
|
||||
public function __construct(
|
||||
RouterInterface $router,
|
||||
AuthenticationManagerInterface $manager,
|
||||
AssetUrlGeneratorInterface $url_generator
|
||||
) {
|
||||
$this->router = $router;
|
||||
$this->authenticationManager = $manager;
|
||||
$this->assetUrlGenerator = $url_generator;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user