| 1 | <?php namespace Arcanesoft\Pages\Providers; |
||
| 12 | class AuthorizationServiceProvider extends ServiceProvider |
||
| 13 | { |
||
| 14 | /* ------------------------------------------------------------------------------------------------ |
||
| 15 | | Properties |
||
| 16 | | ------------------------------------------------------------------------------------------------ |
||
| 17 | */ |
||
| 18 | /** |
||
| 19 | * The policy mappings for the application. |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $policies = [ |
||
| 24 | // |
||
| 25 | ]; |
||
| 26 | /* ------------------------------------------------------------------------------------------------ |
||
| 27 | | Main Functions |
||
| 28 | | ------------------------------------------------------------------------------------------------ |
||
| 29 | */ |
||
| 30 | /** |
||
| 31 | * Register any application authentication / authorization services. |
||
| 32 | * |
||
| 33 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
||
| 34 | */ |
||
| 35 | 6 | public function boot(GateContract $gate) |
|
| 41 | } |
||
| 42 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.