-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency on HtTemplateResolverModule
- Loading branch information
1 parent
0c35b95
commit a1509c4
Showing
5 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/View/Resolver/Factory/ViewResolverDelegatorFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
namespace HtMobileTemplateModule\View\Resolver\Factory; | ||
|
||
use Zend\ServiceManager\DelegatorFactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
use Zend\View\Resolver\AggregateResolver; | ||
|
||
class ViewResolverDelegatorFactory implements DelegatorFactoryInterface | ||
{ | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return AggregateResolver | ||
*/ | ||
public function createDelegatorWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName, $callback) | ||
{ | ||
$resolver = $callback(); | ||
|
||
$resolver->attach($serviceLocator->get('HtMobileTemplateModule\View\Resolver\Map'), 4000); | ||
$resolver->attach($serviceLocator->get('HtMobileTemplateModule\View\Resolver\PathStack'), 2000); | ||
|
||
return $resolver; | ||
} | ||
} |