@@ -68,11 +68,11 @@ |
||
68 | 68 | */ |
69 | 69 | public function execute(array $params) |
70 | 70 | { |
71 | - $this->component = 'Controller'; |
|
72 | - $this->directory = 'Controllers'; |
|
73 | - $this->template = 'controller.tpl.php'; |
|
74 | - $this->classNameLang = 'CLI.generator.className.controller'; |
|
75 | - $params = array_merge($params, ['suffix' => null]); |
|
71 | + $this->component = 'Controller'; |
|
72 | + $this->directory = 'Controllers'; |
|
73 | + $this->template = 'controller.tpl.php'; |
|
74 | + $this->classNameLang = 'CLI.generator.className.controller'; |
|
75 | + $params = array_merge($params, ['suffix' => null]); |
|
76 | 76 | |
77 | 77 | $this->task('Creation du controleur')->eol(); |
78 | 78 |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | return true; |
111 | 111 | } |
112 | 112 | |
113 | - /** |
|
113 | + /** |
|
114 | 114 | * @deprecated use off() instead |
115 | 115 | */ |
116 | 116 | public function detach(string $event, callable $callback, int $priority = 0): bool |
@@ -167,10 +167,10 @@ discard block |
||
167 | 167 | return $result; |
168 | 168 | } |
169 | 169 | |
170 | - /** |
|
171 | - * @deprecated use emit() instead |
|
172 | - */ |
|
173 | - public function trigger($event, $target = null, $argv = []) |
|
170 | + /** |
|
171 | + * @deprecated use emit() instead |
|
172 | + */ |
|
173 | + public function trigger($event, $target = null, $argv = []) |
|
174 | 174 | { |
175 | 175 | return $this->emit($event, $target, $argv); |
176 | 176 | } |
@@ -31,9 +31,9 @@ |
||
31 | 31 | public function discove() |
32 | 32 | { |
33 | 33 | $files = array_merge( |
34 | - $this->locator->listFiles('Events/'), // @deprecated just use for compatibility |
|
35 | - $this->locator->listFiles('Listeners/') |
|
36 | - ); |
|
34 | + $this->locator->listFiles('Events/'), // @deprecated just use for compatibility |
|
35 | + $this->locator->listFiles('Listeners/') |
|
36 | + ); |
|
37 | 37 | |
38 | 38 | foreach ($files as $file) { |
39 | 39 | $className = $this->locator->getClassname($file); |