Cilex\Application::register PHP Method

register() public method

{@inheritDoc}
public register ( Pimple\ServiceProviderInterface $provider, array $values = [] )
$provider Pimple\ServiceProviderInterface
$values array
    public function register(ServiceProviderInterface $provider, array $values = array())
    {
        parent::register($provider, $values);
        $this->providers[] = $provider;
    }

Usage Example

Beispiel #1
0
 /**
  * Tests whether the register method applies the provided parameters to this
  * application and correctly registers the ServiceProvider.
  */
 public function testRegister()
 {
     $provider = new ServiceProviderMock();
     $this->fixture->register($provider, array('mock.param' => true));
     $this->assertTrue($this->fixture['mock.param']);
     $this->assertSame($this->fixture['mock'], $provider);
 }
All Usage Examples Of Cilex\Application::register