View Route.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Silex\Application; | |
use Silex\ControllerCollection; | |
class Route{ | |
/** controllers context stack */ | |
protected static $contextStack = []; |
View gist:8514609
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Routing\Controller; | |
class BaseController extends Controller { | |
/** | |
* container for data, assets, js variables etc | |
* @var array | |
*/ | |
protected $data = array(); |