| 1 | <?php  | 
            ||
| 12 | abstract class Base  | 
            ||
| 13 | { | 
            ||
| 14 | /**  | 
            ||
| 15 | * @var \Log log class  | 
            ||
| 16 | */  | 
            ||
| 17 | protected $logger;  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * @var \DB\SQL database class  | 
            ||
| 21 | */  | 
            ||
| 22 | protected $db;  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * Use climate by default  | 
            ||
| 26 | *  | 
            ||
| 27 | * @var object cli-handling class  | 
            ||
| 28 | * @link http://climate.thephpleague.com/  | 
            ||
| 29 | */  | 
            ||
| 30 | protected $cli;  | 
            ||
| 31 | |||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * init  | 
            ||
| 35 | * @param \Base $f3  | 
            ||
| 36 | */  | 
            ||
| 37 | public function __construct(\Base $f3)  | 
            ||
| 47 | |||
| 48 | /**  | 
            ||
| 49 | * @return void  | 
            ||
| 50 | */  | 
            ||
| 51 | public function beforeRoute()  | 
            ||
| 56 | |||
| 57 | |||
| 58 | /**  | 
            ||
| 59 | * @param \Base $f3  | 
            ||
| 60 | * @return void  | 
            ||
| 61 | */  | 
            ||
| 62 | public function afterRoute($f3)  | 
            ||
| 69 | }  | 
            ||
| 70 |