1 | <?php namespace Arcanedev\Support; |
||
15 | abstract class ServiceProvider extends BaseServiceProvider |
||
16 | { |
||
17 | /* ----------------------------------------------------------------- |
||
18 | | Properties |
||
19 | | ----------------------------------------------------------------- |
||
20 | */ |
||
21 | |||
22 | /** |
||
23 | * The application instance. |
||
24 | * |
||
25 | * @var \Illuminate\Foundation\Application |
||
26 | */ |
||
27 | protected $app; |
||
28 | |||
29 | /** |
||
30 | * The aliases collection. |
||
31 | * |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $aliases = []; |
||
35 | |||
36 | /** |
||
37 | * Alias loader. |
||
38 | * |
||
39 | * @var \Illuminate\Foundation\AliasLoader |
||
40 | */ |
||
41 | private $aliasLoader; |
||
42 | |||
43 | /* ----------------------------------------------------------------- |
||
44 | | Constructor |
||
45 | | ----------------------------------------------------------------- |
||
46 | */ |
||
47 | |||
48 | /** |
||
49 | * Create a new service provider instance. |
||
50 | * |
||
51 | * @param \Illuminate\Contracts\Foundation\Application $app |
||
52 | */ |
||
53 | public function __construct(Application $app) |
||
59 | |||
60 | /* ----------------------------------------------------------------- |
||
61 | | Main Methods |
||
62 | | ----------------------------------------------------------------- |
||
63 | */ |
||
64 | |||
65 | /** |
||
66 | * Register the service provider. |
||
67 | */ |
||
68 | public function register() |
||
72 | |||
73 | /** |
||
74 | * Boot the service provider. |
||
75 | */ |
||
76 | public function boot() |
||
80 | |||
81 | /** |
||
82 | * Register aliases (Facades). |
||
83 | */ |
||
84 | protected function registerAliases() |
||
94 | |||
95 | /** |
||
96 | * Add an aliases to the loader. |
||
97 | * |
||
98 | * @param array $aliases |
||
99 | * |
||
100 | * @return self |
||
101 | */ |
||
102 | protected function aliases(array $aliases) |
||
110 | |||
111 | /** |
||
112 | * Add an alias to the loader. |
||
113 | * |
||
114 | * @param string $class |
||
115 | * @param string $alias |
||
116 | * |
||
117 | * @return self |
||
118 | */ |
||
119 | protected function alias($class, $alias) |
||
125 | |||
126 | /* ----------------------------------------------------------------- |
||
127 | | Services |
||
128 | | ----------------------------------------------------------------- |
||
129 | */ |
||
130 | |||
131 | /** |
||
132 | * Get the config repository instance. |
||
133 | * |
||
134 | * @return \Illuminate\Config\Repository |
||
135 | */ |
||
136 | protected function config() |
||
140 | |||
141 | /** |
||
142 | * Get the filesystem instance. |
||
143 | * |
||
144 | * @return \Illuminate\Filesystem\Filesystem |
||
145 | */ |
||
146 | protected function filesystem() |
||
150 | } |
||
151 |