Ejemplo n.º 1
0
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $groupTaskService = $serviceLocator->getServiceLocator()->get(Group::class);
     $hydrartor = new ClassMethods();
     $hydrartor->addStrategy('groups', new Groups($groupTaskService));
     return $hydrartor;
 }
Ejemplo n.º 2
0
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $accountTaskService = $serviceLocator->getServiceLocator()->get(Account::class);
     $hydrartor = new ClassMethods();
     $hydrartor->addStrategy('accounts', new Accounts($accountTaskService));
     return $hydrartor;
 }