@@ 18-28 (lines=11) @@ | ||
15 | /** |
|
16 | * @param Application $app |
|
17 | */ |
|
18 | protected function addCommands(Application $app) |
|
19 | { |
|
20 | $path = $this->getPath(); |
|
21 | $app['console.command.paths'] = $app->share( |
|
22 | $app->extend('console.command.paths', function ($paths) use ($path) { |
|
23 | $paths[] = $path . '/Command'; |
|
24 | ||
25 | return $paths; |
|
26 | }) |
|
27 | ); |
|
28 | } |
|
29 | ||
30 | /** |
|
31 | * @param Application $app |
|
@@ 33-43 (lines=11) @@ | ||
30 | /** |
|
31 | * @param Application $app |
|
32 | */ |
|
33 | protected function addControllers(Application $app) |
|
34 | { |
|
35 | $path = $this->getPath(); |
|
36 | $app['route_controller_paths'] = $app->share( |
|
37 | $app->extend('route_controller_paths', function ($paths) use ($path) { |
|
38 | $paths[] = $path . '/Controller'; |
|
39 | ||
40 | return $paths; |
|
41 | }) |
|
42 | ); |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * @param Application $app |
|
@@ 78-88 (lines=11) @@ | ||
75 | /** |
|
76 | * @param Application $app |
|
77 | */ |
|
78 | protected function addTranslatorResources(Application $app) |
|
79 | { |
|
80 | $path = $this->getPath(); |
|
81 | $app['translation_paths'] = $app->share( |
|
82 | $app->extend('translation_paths', function ($paths) use ($path) { |
|
83 | $paths[] = $path . '/Resources/translations'; |
|
84 | ||
85 | return $paths; |
|
86 | }) |
|
87 | ); |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * @param Application $app |