mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-11 02:10:12 +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->assetUrlGenerator = new AssetUrlGenerator();
|
||||||
$this->controllerResolver = new ControllerResolver(
|
$this->controllerResolver = new ControllerResolver(
|
||||||
$this->router,
|
$this->router,
|
||||||
$this->authenticationManager
|
$this->authenticationManager,
|
||||||
|
$this->assetUrlGenerator
|
||||||
);
|
);
|
||||||
$this->controllerResolver->setAssetUrlGenerator($this->assetUrlGenerator);
|
|
||||||
$this->accessCheckResolver = new CheckResolver($this->authenticationManager);
|
$this->accessCheckResolver = new CheckResolver($this->authenticationManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,11 +53,17 @@ class ControllerResolver implements
|
|||||||
* @param RouterInterface $router Router instance.
|
* @param RouterInterface $router Router instance.
|
||||||
* @param AuthenticationManagerInterface $manager Authentication manager
|
* @param AuthenticationManagerInterface $manager Authentication manager
|
||||||
* instance.
|
* 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->router = $router;
|
||||||
$this->authenticationManager = $manager;
|
$this->authenticationManager = $manager;
|
||||||
|
$this->assetUrlGenerator = $url_generator;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user