Example #1
0
 /**
  * @param ConfigurationInterface $configuration
  */
 public function setConfiguration(ConfigurationInterface $configuration)
 {
     $this->configuration = $configuration;
     // Bind container if needed
     if ($this->configuration instanceof ContainerAwareInterface) {
         $this->configuration->setContainer($this->getContainer());
     }
     // Boot configuration if asked to
     if (method_exists($this->configuration, 'configure')) {
         $this->configuration->configure();
     }
 }