1 | <?php |
||
14 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
15 | { |
||
16 | /** |
||
17 | * Addon environment. |
||
18 | * |
||
19 | * @var \Jumilla\Addomnipot\Laravel\Environment |
||
20 | */ |
||
21 | protected $addonEnvironment; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected static $commands = [ |
||
27 | // app: |
||
28 | 'command+.app.container' => Console\AppContainerCommand::class, |
||
29 | 'command+.app.route' => Console\RouteListCommand::class, |
||
30 | 'command+.app.tail' => Console\TailCommand::class, |
||
31 | // addon: |
||
32 | 'command+.addon.list' => Addons\Console\AddonListCommand::class, |
||
33 | 'command+.addon.status' => Addons\Console\AddonStatusCommand::class, |
||
34 | 'command+.addon.make' => Addons\Console\AddonMakeCommand::class, |
||
35 | 'command+.addon.name' => Addons\Console\AddonNameCommand::class, |
||
36 | 'command+.addon.remove' => Addons\Console\AddonRemoveCommand::class, |
||
37 | // database: |
||
38 | 'command+.database.status' => Database\Console\DatabaseStatusCommand::class, |
||
39 | 'command+.database.upgrade' => Database\Console\DatabaseUpgradeCommand::class, |
||
40 | 'command+.database.clean' => Database\Console\DatabaseCleanCommand::class, |
||
41 | 'command+.database.refresh' => Database\Console\DatabaseRefreshCommand::class, |
||
42 | 'command+.database.rollback' => Database\Console\DatabaseRollbackCommand::class, |
||
43 | 'command+.database.again' => Database\Console\DatabaseAgainCommand::class, |
||
44 | 'command+.database.seed' => Database\Console\DatabaseSeedCommand::class, |
||
45 | // hash: |
||
46 | 'command+.hash.make' => Console\HashMakeCommand::class, |
||
47 | 'command+.hash.check' => Console\HashCheckCommand::class, |
||
48 | ]; |
||
49 | |||
50 | /** |
||
51 | * @var array |
||
52 | */ |
||
53 | protected $addons; |
||
54 | |||
55 | /** |
||
56 | * Register the service provider. |
||
57 | */ |
||
58 | 1 | public function register() |
|
94 | |||
95 | /** |
||
96 | */ |
||
97 | 1 | protected function registerClassResolvers() |
|
105 | |||
106 | /** |
||
107 | * setup package's commands. |
||
108 | * |
||
109 | * @param array $commands |
||
110 | */ |
||
111 | 1 | protected function setupPackageCommands(array $commands) |
|
122 | |||
123 | /** |
||
124 | * Register all addons. |
||
125 | */ |
||
126 | 1 | public function registerAddons(array $addons) |
|
132 | |||
133 | /** |
||
134 | * Bootstrap the application events. |
||
135 | */ |
||
136 | 1 | public function boot() |
|
144 | |||
145 | /** |
||
146 | * register blade extensions. |
||
147 | */ |
||
148 | 1 | protected function registerBladeExtensions() |
|
154 | |||
155 | /** |
||
156 | * setup & boot addons. |
||
157 | */ |
||
158 | 1 | protected function bootAddons() |
|
165 | |||
166 | /** |
||
167 | * Get the services provided by the provider. |
||
168 | * |
||
169 | * @return array |
||
170 | */ |
||
171 | public function provides() |
||
175 | } |
||
176 |