1 | <?php |
||
8 | class HashidManager extends Manager |
||
9 | { |
||
10 | /** |
||
11 | * Get a hashid connection instance. |
||
12 | * |
||
13 | * @param string|null $name |
||
14 | * @return mixed |
||
15 | */ |
||
16 | public function connection($name = null) |
||
20 | |||
21 | /** |
||
22 | * Get all of the created connections. |
||
23 | * |
||
24 | * @return array |
||
25 | */ |
||
26 | public function getConnections() |
||
30 | |||
31 | /** |
||
32 | * Get the default connection name. |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getDefaultConnection() |
||
40 | |||
41 | /** |
||
42 | * Set the default connection name. |
||
43 | * |
||
44 | * @param string $name |
||
45 | * @return $this |
||
46 | */ |
||
47 | public function setDefaultConnection($name) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getDefaultDriver() |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | protected function createDriver($name) |
||
81 | |||
82 | /** |
||
83 | * Create a new hashid connection instance. |
||
84 | * |
||
85 | * @param array $config |
||
86 | * @return mixed |
||
87 | * |
||
88 | * @throws \InvalidArgumentException |
||
89 | */ |
||
90 | protected function createConnection(array $config) |
||
113 | |||
114 | /** |
||
115 | * Get connection configuration without "driver" element. |
||
116 | * |
||
117 | * @param array $config |
||
118 | * @return array |
||
119 | */ |
||
120 | protected function getConfigWithoutDriver($config) |
||
126 | } |
||
127 |