| 1 | <?php |
||
| 26 | class BaseController |
||
| 27 | { |
||
| 28 | use ApplicationTrait; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Set application as internal property |
||
| 32 | * |
||
| 33 | * @param Application $application |
||
| 34 | */ |
||
| 35 | 1 | public function __construct(Application $application) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * Getting route params |
||
| 42 | * |
||
| 43 | * @param string $name |
||
| 44 | * |
||
| 45 | * return string |
||
| 46 | */ |
||
| 47 | 2 | protected function getParam($name) |
|
| 53 | } |
||
| 54 |