Ejemplo n.º 1
0
 public function testConfiguratorAddsRoutesFromLoaderToCollection()
 {
     $collection = $this->getMockCollection();
     $loader = $this->getMockLoader();
     $loader->expects($this->once())->method('loadRoutes')->with($collection);
     $instance = new Configurator($loader);
     $instance->configure($collection);
 }
Ejemplo n.º 2
0
 public function __construct($options = null)
 {
     Configurator::configure($this, $options);
 }
Ejemplo n.º 3
0
 public function __construct($options = null)
 {
     Configurator::configure($this, $options);
     $this->livros = new ArrayCollection();
 }
Ejemplo n.º 4
0
 public function __construct($options = null)
 {
     Configurator::configure($this, $options);
     $this->salt = base_convert(sha1(uniqid(mt_rand(), true)), 16, 36);
 }