Kraken\Container\ServiceRegister::flushProviders PHP Method

flushProviders() public method

public flushProviders ( )
    public function flushProviders()
    {
        if ($this->booted) {
            throw new IllegalCallException("Method ServiceRegister::flushProviders() cannot be called after boot up.");
        }
        $this->serviceProviders = [];
    }

Usage Example

Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function flushProviders()
 {
     $this->serviceRegister->flushProviders();
 }