コード例 #1
0
 /**
  * Constructor.
  *
  * @param   Container  $container  The DI container.
  * @param   Input      $input      The Input object.
  *
  * @since   1.0
  */
 public function __construct(Container $container, Input $input = null)
 {
     parent::__construct($input);
     $this->container = $container;
 }
コード例 #2
0
ファイル: Router.php プロジェクト: houzhenggang/cobalt
 /**
  * Constructor.
  *
  * @param Input $input An optional input object from which to derive the route.  If none
  *                                       is given than the input from the application object will be used.
  * @param AbstractApplication $app An optional application object to inject to controllers
  *
  * @since   1.0
  */
 public function __construct(Input $input = null, AbstractApplication $app = null)
 {
     parent::__construct($app->input);
     $this->app = $app;
 }