Skip to content

Commit

Permalink
Fixed cs issue and ServiceManager support
Browse files Browse the repository at this point in the history
  • Loading branch information
svycka committed Sep 15, 2017
1 parent 7f99f05 commit f67aabc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/SlmLocale/Strategy/Factory/UriPathStrategyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class UriPathStrategyFactory implements FactoryInterface
*/
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{
$strategy = new UriPathStrategy($container->getServiceLocator()->get('router'));
$strategy->setServiceLocator($container);
$strategy = new UriPathStrategy($container->get('router'));
$strategy->setServiceLocator($container->get(\SlmLocale\Strategy\StrategyPluginManager::class));

return $strategy;
}
Expand All @@ -80,6 +80,6 @@ public function __invoke(ContainerInterface $container, $requestedName, array $o
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
return $this($serviceLocator, UriPathStrategy::class);
return $this($serviceLocator->getServiceLocator(), UriPathStrategy::class);
}
}
2 changes: 1 addition & 1 deletion src/SlmLocale/Strategy/StrategyPluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@

namespace SlmLocale\Strategy;

use SlmLocale\Strategy\Factory\UriPathStrategyFactory;
use Zend\ServiceManager\AbstractPluginManager;
use Zend\ServiceManager\Factory\InvokableFactory;
use SlmLocale\Strategy\Factory\UriPathStrategyFactory;

class StrategyPluginManager extends AbstractPluginManager
{
Expand Down

0 comments on commit f67aabc

Please sign in to comment.