1 | <?php namespace Arcanesoft\Media; |
||
12 | class Media implements MediaContract |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Properties |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | /** |
||
19 | * The application instance. |
||
20 | * |
||
21 | * @var \Illuminate\Contracts\Foundation\Application |
||
22 | */ |
||
23 | protected $app; |
||
24 | |||
25 | /* ------------------------------------------------------------------------------------------------ |
||
26 | | Constructor |
||
27 | | ------------------------------------------------------------------------------------------------ |
||
28 | */ |
||
29 | /** |
||
30 | * Media constructor. |
||
31 | * |
||
32 | * @param \Illuminate\Contracts\Foundation\Application $app |
||
33 | */ |
||
34 | 6 | public function __construct(Application $app) |
|
38 | |||
39 | /* ------------------------------------------------------------------------------------------------ |
||
40 | | Getters & Setters |
||
41 | | ------------------------------------------------------------------------------------------------ |
||
42 | */ |
||
43 | /** |
||
44 | * Get the Filesystem Manager instance. |
||
45 | * |
||
46 | * @return \Illuminate\Contracts\Filesystem\Factory |
||
47 | */ |
||
48 | 3 | public function filesystem() |
|
52 | |||
53 | /** |
||
54 | * Get the Config Repository. |
||
55 | * |
||
56 | * @return \Illuminate\Contracts\Config\Repository |
||
57 | */ |
||
58 | 3 | protected function config() |
|
62 | |||
63 | /* ------------------------------------------------------------------------------------------------ |
||
64 | | Main Functions |
||
65 | | ------------------------------------------------------------------------------------------------ |
||
66 | */ |
||
67 | /** |
||
68 | * Get a filesystem adapter. |
||
69 | * |
||
70 | * @param string|null $driver |
||
71 | * |
||
72 | * @return \Illuminate\Contracts\Filesystem\Filesystem |
||
73 | */ |
||
74 | 3 | public function disk($driver = null) |
|
78 | |||
79 | /** |
||
80 | * Get the default filesystem adapter. |
||
81 | * |
||
82 | * @return \Illuminate\Contracts\Filesystem\Filesystem |
||
83 | */ |
||
84 | 3 | public function defaultDisk() |
|
90 | } |
||
91 |