1 | <?php |
||
17 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
18 | { |
||
19 | /** |
||
20 | * Addon environment. |
||
21 | * |
||
22 | * @var \Jumilla\Addomnipot\Laravel\Environment |
||
23 | */ |
||
24 | protected $addonEnvironment; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected static $commands = [ |
||
30 | // app: |
||
31 | 'command+.app.container' => Console\AppContainerCommand::class, |
||
32 | 'command+.app.route' => Console\RouteListCommand::class, |
||
33 | 'command+.app.tail' => Console\TailCommand::class, |
||
34 | // addon: |
||
35 | 'command+.addon.list' => Addons\Console\AddonListCommand::class, |
||
36 | 'command+.addon.status' => Addons\Console\AddonStatusCommand::class, |
||
37 | 'command+.addon.make' => Addons\Console\AddonMakeCommand::class, |
||
38 | 'command+.addon.name' => Addons\Console\AddonNameCommand::class, |
||
39 | 'command+.addon.remove' => Addons\Console\AddonRemoveCommand::class, |
||
40 | // database: |
||
41 | 'command+.database.status' => Database\Console\DatabaseStatusCommand::class, |
||
42 | 'command+.database.upgrade' => Database\Console\DatabaseUpgradeCommand::class, |
||
43 | 'command+.database.clean' => Database\Console\DatabaseCleanCommand::class, |
||
44 | 'command+.database.refresh' => Database\Console\DatabaseRefreshCommand::class, |
||
45 | 'command+.database.rollback' => Database\Console\DatabaseRollbackCommand::class, |
||
46 | 'command+.database.again' => Database\Console\DatabaseAgainCommand::class, |
||
47 | 'command+.database.seed' => Database\Console\DatabaseSeedCommand::class, |
||
48 | // hash: |
||
49 | 'command+.hash.make' => Console\HashMakeCommand::class, |
||
50 | 'command+.hash.check' => Console\HashCheckCommand::class, |
||
51 | ]; |
||
52 | |||
53 | /** |
||
54 | * @var array |
||
55 | */ |
||
56 | protected $addons; |
||
57 | |||
58 | /** |
||
59 | * Register the service provider. |
||
60 | */ |
||
61 | 1 | public function register() |
|
101 | |||
102 | /** |
||
103 | */ |
||
104 | 1 | protected function registerClassResolvers() |
|
112 | |||
113 | /** |
||
114 | * setup package's commands. |
||
115 | * |
||
116 | * @param array $commands |
||
117 | */ |
||
118 | 1 | protected function setupPackageCommands(array $commands) |
|
129 | |||
130 | /** |
||
131 | * Register all addons. |
||
132 | */ |
||
133 | 1 | public function registerAddons(array $addons) |
|
139 | |||
140 | /** |
||
141 | * Bootstrap the application events. |
||
142 | */ |
||
143 | 1 | public function boot() |
|
153 | |||
154 | /** |
||
155 | * register blade extensions. |
||
156 | */ |
||
157 | 1 | protected function registerBladeExtensions() |
|
163 | |||
164 | /** |
||
165 | * setup & boot addons. |
||
166 | */ |
||
167 | 1 | protected function bootAddons() |
|
174 | |||
175 | /** |
||
176 | * Get the services provided by the provider. |
||
177 | * |
||
178 | * @return array |
||
179 | */ |
||
180 | public function provides() |
||
184 | } |
||
185 |