1 | <?php |
||
20 | class Standard implements Iface |
||
21 | { |
||
22 | private $config; |
||
23 | private $objects = []; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * Initializes the object |
||
28 | * |
||
29 | * @param \Aimeos\MW\Config\Iface $config Configuration object |
||
30 | */ |
||
31 | public function __construct( \Aimeos\MW\Config\Iface $config ) |
||
35 | |||
36 | |||
37 | /** |
||
38 | * Cleans up the object |
||
39 | */ |
||
40 | public function __destruct() |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Clones the objects inside. |
||
50 | */ |
||
51 | public function __clone() |
||
59 | |||
60 | |||
61 | /** |
||
62 | * Returns the file system for the given name |
||
63 | * |
||
64 | * @param string $name Key for the file system |
||
65 | * @return \Aimeos\MW\Filesystem\Iface File system object |
||
66 | * @throws \Aimeos\MW\Filesystem\Exception If an no configuration for that name is found |
||
67 | */ |
||
68 | public function get( $name ) |
||
78 | |||
79 | |||
80 | /** |
||
81 | * Returns the configuration for the given name |
||
82 | * |
||
83 | * @param string $name Name of the resource, e.g. "fs" or "fs-media" |
||
84 | * @return array|string Configuration values |
||
85 | * @throws \Aimeos\MW\Filesystem\Exception If an no configuration for that name is found |
||
86 | */ |
||
87 | protected function getConfig( $name ) |
||
101 | } |
||
102 |