1 | <?php |
||
9 | class HashidManager extends Manager |
||
10 | { |
||
11 | /** |
||
12 | * Get a hashid connection instance. |
||
13 | * |
||
14 | * @param string|null $name |
||
15 | * @return mixed |
||
16 | */ |
||
17 | 11 | public function connection($name = null) |
|
21 | |||
22 | /** |
||
23 | * Get all of the created connections. |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | 1 | public function getConnections() |
|
31 | |||
32 | /** |
||
33 | * Get the default connection name. |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | 3 | public function getDefaultConnection() |
|
41 | |||
42 | /** |
||
43 | * Set the default connection name. |
||
44 | * |
||
45 | * @param string $name |
||
46 | * @return $this |
||
47 | */ |
||
48 | 1 | public function setDefaultConnection($name) |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 2 | public function getDefaultDriver() |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 11 | protected function createDriver($name) |
|
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | 6 | protected function callCustomCreator($driver) |
|
91 | |||
92 | /** |
||
93 | * Get the configuration for a connection. |
||
94 | * |
||
95 | * @param string $name |
||
96 | * @return array |
||
97 | */ |
||
98 | 11 | protected function configuration($name) |
|
102 | |||
103 | /** |
||
104 | * Create a new hashid connection instance for the driver. |
||
105 | * |
||
106 | * We will check to see if a creator method exists for the given driver, |
||
107 | * and will call the Closure if so, which allows us to have a more generic |
||
108 | * resolver for the drivers themselves which applies to all connections. |
||
109 | * |
||
110 | * @param string $driver |
||
111 | * @param array $config |
||
112 | * @return mixed |
||
113 | * |
||
114 | * @throws \InvalidArgumentException |
||
115 | */ |
||
116 | 5 | protected function createConnectionForDriver($driver, array $config = []) |
|
128 | |||
129 | /** |
||
130 | * Resolve the given type from the container. |
||
131 | * |
||
132 | * NOTE: |
||
133 | * `Container::make($abstract, $parameters)` which can pass additional |
||
134 | * parameters to the constructor was removed in Laravel 5.4 |
||
135 | * (https://github.com/laravel/internals/issues/391), but then re-added |
||
136 | * as `makeWith()` in v5.4.16 (https://github.com/laravel/framework/pull/18271). |
||
137 | * And in L55 the `makeWith()` is just an alias to `make()`. |
||
138 | * |
||
139 | * @param string $abstract |
||
140 | * @param array $parameters |
||
141 | * @return mixed |
||
142 | */ |
||
143 | 3 | protected function resolveFromContainer($abstract, array $parameters = []) |
|
153 | } |
||
154 |