1 | <?php |
||
8 | class AdminSectionsServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * @var array Associative array in form of: Model::class => Section::class |
||
12 | */ |
||
13 | protected $sections = []; |
||
14 | |||
15 | /** |
||
16 | * @var array Associative array in form of: Section::class => Policy::class |
||
17 | */ |
||
18 | protected $policies = []; |
||
19 | |||
20 | /** |
||
21 | * @return array |
||
22 | */ |
||
23 | 285 | public function sections() |
|
27 | |||
28 | /** |
||
29 | * @param \SleepingOwl\Admin\Admin $admin |
||
30 | */ |
||
31 | 285 | public function boot(\SleepingOwl\Admin\Admin $admin) |
|
35 | |||
36 | /** |
||
37 | * Register the service provider. |
||
38 | * |
||
39 | * @return void |
||
40 | */ |
||
41 | public function register() |
||
45 | |||
46 | /** |
||
47 | * @param string|null $namespace |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | public function policies($namespace = null) |
||
71 | |||
72 | /** |
||
73 | * @param string|null $namespace |
||
74 | */ |
||
75 | public function registerPolicies($namespace = null) |
||
81 | } |
||
82 |