1 | <?php namespace Anomaly\ConfigurationModule\Configuration\Form; |
||
17 | class ConfigurationFormRepository implements FormRepositoryInterface |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * The config repository. |
||
22 | * |
||
23 | * @var Repository |
||
24 | */ |
||
25 | protected $config; |
||
26 | |||
27 | /** |
||
28 | * The application container. |
||
29 | * |
||
30 | * @var Container |
||
31 | */ |
||
32 | protected $container; |
||
33 | |||
34 | /** |
||
35 | * The configurations repository. |
||
36 | * |
||
37 | * @var ConfigurationRepositoryInterface |
||
38 | */ |
||
39 | protected $configurations; |
||
40 | |||
41 | /** |
||
42 | * Create a new ConfigurationFormRepositoryInterface instance. |
||
43 | * |
||
44 | * @param Repository $config |
||
45 | * @param Container $container |
||
46 | * @param ConfigurationRepositoryInterface $configurations |
||
47 | */ |
||
48 | public function __construct( |
||
57 | |||
58 | /** |
||
59 | * Find an entry or return a new one. |
||
60 | * |
||
61 | * @param $id |
||
62 | * @return string |
||
63 | */ |
||
64 | public function findOrNew($id) |
||
68 | |||
69 | /** |
||
70 | * Save the form. |
||
71 | * |
||
72 | * @param FormBuilder|ConfigurationFormBuilder $builder |
||
73 | * @return bool|mixed |
||
74 | */ |
||
75 | public function save(FormBuilder $builder) |
||
89 | } |
||
90 |