1 | <?php |
||
8 | class AutoDeployServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Bootstrap the application services. |
||
12 | */ |
||
13 | 36 | public function boot(Kernel $kernel) |
|
18 | |||
19 | /** |
||
20 | * Register the application services. |
||
21 | */ |
||
22 | 36 | public function register() |
|
29 | |||
30 | 36 | private function registerConfig() |
|
37 | |||
38 | 36 | private function registerDeployCommands() |
|
39 | { |
||
40 | $this->app->singleton('command.morphatic.deployinit', function($app) { |
||
41 | 10 | return $app['Morphatic\AutoDeploy\Commands\DeployInitCommand']; |
|
42 | 36 | }); |
|
43 | |||
44 | 36 | $this->app->singleton('command.morphatic.deployinfo', function($app) { |
|
45 | 10 | return $app['Morphatic\AutoDeploy\Commands\DeployInfoCommand']; |
|
46 | 36 | }); |
|
47 | |||
48 | 36 | $this->commands('command.morphatic.deployinit'); |
|
49 | 36 | $this->commands('command.morphatic.deployinfo'); |
|
50 | 36 | } |
|
51 | |||
52 | 36 | private function registerDeployOrigins() |
|
53 | { |
||
54 | 36 | $originTypes = ['Github']; |
|
55 | 36 | foreach ($originTypes as $ot) { |
|
56 | 36 | $this->app->bind('Morphatic\AutoDeploy\Origins\OriginInterface', 'Morphatic\AutoDeploy\Origins\\'.$ot); |
|
57 | 18 | } |
|
58 | 36 | } |
|
59 | |||
60 | 36 | private function registerDeployController() |
|
64 | |||
65 | 36 | private function registerMiddleware(Kernel $kernel) |
|
70 | |||
71 | 36 | private function registerRoutes() |
|
81 | } |
||
82 |