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 | 10 | 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 | 2 | 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 | 1 | public function getDefaultDriver() |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 10 | protected function createDriver($name) |
|
78 | |||
79 | /** |
||
80 | * Create a new hashid connection instance for the driver. |
||
81 | * |
||
82 | * @param string $name |
||
83 | * @param string $driver |
||
84 | * @param array $config |
||
85 | * @return mixed |
||
86 | * |
||
87 | * @throws \InvalidArgumentException |
||
88 | */ |
||
89 | 5 | protected function createConnectionForDriver($name, $driver, array $config = []) |
|
111 | |||
112 | /** |
||
113 | * Resolve the given type from the container. |
||
114 | * |
||
115 | * NOTE: |
||
116 | * `Container::make($abstract, $parameters)` which can pass additional |
||
117 | * parameters to the constructor was removed in Laravel 5.4 |
||
118 | * (https://github.com/laravel/internals/issues/391), but then re-added |
||
119 | * as `makeWith()` in v5.4.16 (https://github.com/laravel/framework/pull/18271). |
||
120 | * And in L55 the `makeWith()` is just an alias to `make()`. |
||
121 | * |
||
122 | * @param string $abstract |
||
123 | * @param array $parameters |
||
124 | * @return mixed |
||
125 | */ |
||
126 | 2 | protected function resolveFromContainer($abstract, array $parameters = []) |
|
136 | } |
||
137 |