Ejemplo n.º 1
0
 public function __construct(array $attributes = [])
 {
     parent::__construct(array_merge(['debug' => true, 'providers' => ['foo' => 'foo', 'bar' => 'bar'], 'middlewares' => ['foo', 'bar']], $attributes));
 }
Ejemplo n.º 2
0
 /**
  * @param array $attributes
  */
 public function __construct(array $attributes = [])
 {
     $this->configure();
     parent::__construct($attributes);
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct(['debug' => true, 'providers' => ['foo' => 'foo', 'bar' => 'bar'], 'middlewares' => ['foo', 'bar']]);
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     $array = parent::toArray();
     return array_merge($array, ['providers' => $this->getProviders(), 'middlewares' => $this->getMiddlewares()]);
 }