1 | <?php |
||
21 | class RepositoryServiceProvider extends ServiceProvider |
||
22 | { |
||
23 | /** |
||
24 | * The repository alias pattern. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $repositoryAliasPattern = '{{class}}Contract'; |
||
|
|||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function register() |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function boot() |
||
53 | |||
54 | /** |
||
55 | * Publish package resources. |
||
56 | * |
||
57 | * @return void |
||
58 | */ |
||
59 | protected function publishResources() |
||
66 | |||
67 | /** |
||
68 | * Register an IoC binding whether it's already been registered or not. |
||
69 | * |
||
70 | * @param string $abstract |
||
71 | * @param \Closure|string|null $concrete |
||
72 | * @param bool $shared |
||
73 | * @param string|null $alias |
||
74 | * @param bool $force |
||
75 | * |
||
76 | * @return void |
||
77 | */ |
||
78 | protected function bindRepository($abstract, $concrete = null, $shared = true, $alias = null, $force = false) |
||
86 | |||
87 | /** |
||
88 | * Prepare the repository alias. |
||
89 | * |
||
90 | * @param string|null $alias |
||
91 | * @param mixed $concrete |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | protected function prepareRepositoryAlias($alias, $concrete) |
||
104 | } |
||
105 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.