1 | <?php namespace Anomaly\SettingsModule\Setting\Listener; |
||
14 | class UpdateMaintenanceMode |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * The settings repository. |
||
19 | * |
||
20 | * @var SettingRepositoryInterface |
||
21 | */ |
||
22 | protected $settings; |
||
23 | |||
24 | /** |
||
25 | * The application instance. |
||
26 | * |
||
27 | * @var Application |
||
28 | */ |
||
29 | protected $application; |
||
30 | |||
31 | /** |
||
32 | * Create a new UpdateMaintenanceMode instance. |
||
33 | * |
||
34 | * @param Application $application |
||
35 | * @param SettingRepositoryInterface $settings |
||
36 | */ |
||
37 | public function __construct(Application $application, SettingRepositoryInterface $settings) |
||
42 | |||
43 | /** |
||
44 | * Handle the command. |
||
45 | * |
||
46 | * @param SettingsWereSaved $event |
||
47 | */ |
||
48 | public function handle(SettingsWereSaved $event) |
||
66 | } |
||
67 |