1 | <?php namespace Anomaly\Streams\Platform\Support; |
||
15 | class Configurator |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * The file system. |
||
20 | * |
||
21 | * @var Filesystem |
||
22 | */ |
||
23 | protected $files; |
||
24 | |||
25 | /** |
||
26 | * The config repository. |
||
27 | * |
||
28 | * @var Repository |
||
29 | */ |
||
30 | protected $config; |
||
31 | |||
32 | /** |
||
33 | * Create a new Configurator instance. |
||
34 | * |
||
35 | * @param Filesystem $files |
||
36 | * @param Repository $config |
||
37 | */ |
||
38 | function __construct(Filesystem $files, Repository $config) |
||
43 | |||
44 | /** |
||
45 | * Add a namespace to configuration. |
||
46 | * |
||
47 | * @param $namespace |
||
48 | * @param $directory |
||
49 | */ |
||
50 | public function addNamespace($namespace, $directory) |
||
74 | |||
75 | /** |
||
76 | * Add namespace overrides to configuration. |
||
77 | * |
||
78 | * @param $namespace |
||
79 | * @param $directory |
||
80 | */ |
||
81 | public function addNamespaceOverrides($namespace, $directory) |
||
111 | } |
||
112 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.