@@ 68-76 (lines=9) @@ | ||
65 | * @param Container $app |
|
66 | * @param string|null $path |
|
67 | */ |
|
68 | public function __construct(Container $app, $path = null) |
|
69 | { |
|
70 | $this->app = $app; |
|
71 | $this->path = $path; |
|
72 | $this->url = $app['url']; |
|
73 | $this->config = $app['config']; |
|
74 | $this->files = $app['files']; |
|
75 | $this->cache = $app['cache']; |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * Get all modules. |
@@ 70-78 (lines=9) @@ | ||
67 | * @param Container $app |
|
68 | * @param string|null $path |
|
69 | */ |
|
70 | public function __construct(Container $app, $path = null) |
|
71 | { |
|
72 | $this->app = $app; |
|
73 | $this->path = $path; |
|
74 | $this->url = $app['url']; |
|
75 | $this->config = $app['config']; |
|
76 | $this->files = $app['files']; |
|
77 | $this->cache = $app['cache']; |
|
78 | } |
|
79 | ||
80 | /** |
|
81 | * Add other module location. |
@@ 66-75 (lines=10) @@ | ||
63 | * @param $name |
|
64 | * @param $path |
|
65 | */ |
|
66 | public function __construct(Container $app, string $name, $path) |
|
67 | { |
|
68 | $this->name = $name; |
|
69 | $this->path = $path; |
|
70 | $this->cache = $app['cache']; |
|
71 | $this->files = $app['files']; |
|
72 | $this->translator = $app['translator']; |
|
73 | $this->activator = $app[ActivatorInterface::class]; |
|
74 | $this->app = $app; |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * Get name. |