| 1 | <?php |
||
| 11 | abstract class ServiceProvider |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The application implementation. |
||
| 15 | * |
||
| 16 | * @var \Magister\Magister |
||
| 17 | */ |
||
| 18 | protected $app; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new service provider instance. |
||
| 22 | * |
||
| 23 | * @param \Magister\Magister $app |
||
| 24 | */ |
||
| 25 | public function __construct(Magister $app) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Register bindings in the container. |
||
| 32 | * |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | abstract public function register(); |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Dynamically handle missing method calls. |
||
| 39 | * |
||
| 40 | * @param string $method |
||
| 41 | * @param array $parameters |
||
| 42 | * |
||
| 43 | * @throws \BadMethodCallException |
||
| 44 | * |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | public function __call($method, $parameters) |
||
| 55 | } |
||
| 56 |