1 | <?php namespace Arcanedev\EmbedVideo; |
||
12 | class ParserManager extends Manager implements ParserManagerContract |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Getters & Setters |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | /** |
||
19 | * Get the default driver name. |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | public function getDefaultDriver() |
||
27 | |||
28 | /* ----------------------------------------------------------------- |
||
29 | | Constructor |
||
30 | | ----------------------------------------------------------------- |
||
31 | */ |
||
32 | /** |
||
33 | * Create a new manager instance. |
||
34 | * |
||
35 | * @param \Illuminate\Foundation\Application $app |
||
36 | */ |
||
37 | 81 | public function __construct($app) |
|
43 | |||
44 | /* ----------------------------------------------------------------- |
||
45 | | Main Methods |
||
46 | | ----------------------------------------------------------------- |
||
47 | */ |
||
48 | /** |
||
49 | * Get a video parser implementation. |
||
50 | * |
||
51 | * @param string $parser |
||
52 | * |
||
53 | * @return \Arcanedev\EmbedVideo\Contracts\Parser |
||
54 | */ |
||
55 | 78 | public function parser($parser = null) |
|
59 | |||
60 | /* ----------------------------------------------------------------- |
||
61 | | Other Methods |
||
62 | | ----------------------------------------------------------------- |
||
63 | */ |
||
64 | /** |
||
65 | * Get the config repository. |
||
66 | * |
||
67 | * @return \Illuminate\Contracts\Config\Repository |
||
68 | */ |
||
69 | 81 | protected function config() |
|
73 | |||
74 | /** |
||
75 | * Get a config value. |
||
76 | * |
||
77 | * @param string $key |
||
78 | * @param mixed|null $default |
||
79 | * |
||
80 | * @return mixed |
||
81 | */ |
||
82 | 81 | protected function getConfig($key, $default = null) |
|
86 | |||
87 | /** |
||
88 | * Register the parsers. |
||
89 | */ |
||
90 | 81 | private function registerParser() |
|
98 | |||
99 | /** |
||
100 | * Build the parser. |
||
101 | * |
||
102 | * @param string $driver |
||
103 | * @param array $configs |
||
104 | * |
||
105 | * @return \Arcanedev\EmbedVideo\Contracts\Parser |
||
106 | */ |
||
107 | 78 | private function buildParser($driver, array $configs) |
|
113 | } |
||
114 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.