@@ -49,41 +49,41 @@ |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * @see \Zend\ServiceManager\AbstractPluginManager::validatePlugin() |
|
| 53 | - */ |
|
| 54 | - public function validatePlugin($plugin) |
|
| 55 | - { |
|
| 56 | - if (!$plugin instanceof ModuleInterface) |
|
| 57 | - { |
|
| 58 | - throw new RuntimeException(sprintf('Plugin must be instance of %s', ModuleInterface::class)); |
|
| 59 | - } |
|
| 60 | - } |
|
| 52 | + * @see \Zend\ServiceManager\AbstractPluginManager::validatePlugin() |
|
| 53 | + */ |
|
| 54 | + public function validatePlugin($plugin) |
|
| 55 | + { |
|
| 56 | + if (!$plugin instanceof ModuleInterface) |
|
| 57 | + { |
|
| 58 | + throw new RuntimeException(sprintf('Plugin must be instance of %s', ModuleInterface::class)); |
|
| 59 | + } |
|
| 60 | + } |
|
| 61 | 61 | |
| 62 | - /** |
|
| 63 | - * @return ModuleInterface[] |
|
| 64 | - */ |
|
| 65 | - protected function getModules() |
|
| 66 | - { |
|
| 67 | - if (!isset($this->modules)) |
|
| 68 | - { |
|
| 69 | - $this->modules = []; |
|
| 70 | - $availablesServices = []; |
|
| 71 | - $registeredServices = [ |
|
| 72 | - 'invokableClasses' => array_keys($this->invokableClasses), |
|
| 73 | - 'factories' => array_keys($this->factories) |
|
| 74 | - ]; |
|
| 62 | + /** |
|
| 63 | + * @return ModuleInterface[] |
|
| 64 | + */ |
|
| 65 | + protected function getModules() |
|
| 66 | + { |
|
| 67 | + if (!isset($this->modules)) |
|
| 68 | + { |
|
| 69 | + $this->modules = []; |
|
| 70 | + $availablesServices = []; |
|
| 71 | + $registeredServices = [ |
|
| 72 | + 'invokableClasses' => array_keys($this->invokableClasses), |
|
| 73 | + 'factories' => array_keys($this->factories) |
|
| 74 | + ]; |
|
| 75 | 75 | |
| 76 | - foreach ($registeredServices as $services) |
|
| 77 | - { |
|
| 78 | - $availablesServices = array_merge($availablesServices, $services); |
|
| 79 | - } |
|
| 76 | + foreach ($registeredServices as $services) |
|
| 77 | + { |
|
| 78 | + $availablesServices = array_merge($availablesServices, $services); |
|
| 79 | + } |
|
| 80 | 80 | |
| 81 | - foreach (array_unique($availablesServices) as $service) |
|
| 82 | - { |
|
| 83 | - $this->modules[$service] = $this->get($service); |
|
| 84 | - } |
|
| 85 | - } |
|
| 81 | + foreach (array_unique($availablesServices) as $service) |
|
| 82 | + { |
|
| 83 | + $this->modules[$service] = $this->get($service); |
|
| 84 | + } |
|
| 85 | + } |
|
| 86 | 86 | |
| 87 | - return $this->modules; |
|
| 88 | - } |
|
| 87 | + return $this->modules; |
|
| 88 | + } |
|
| 89 | 89 | } |
@@ -44,10 +44,12 @@ |
||
| 44 | 44 | |
| 45 | 45 | if ($this->params()->fromPost('confirm')) |
| 46 | 46 | { |
| 47 | - foreach ($this->dependencies as $dependency) /* @var $dependency \Auth\Dependency\ModuleInterface */ |
|
| 47 | + foreach ($this->dependencies as $dependency) { |
|
| 48 | + /* @var $dependency \Auth\Dependency\ModuleInterface */ |
|
| 48 | 49 | { |
| 49 | 50 | $dependency->removeItems($user); |
| 50 | 51 | } |
| 52 | + } |
|
| 51 | 53 | } |
| 52 | 54 | |
| 53 | 55 | return [ |