/**
  * @param AbstractMediaHandler $handler Media handler
  *
  * @return MediaManager
  */
 public function addHandler(AbstractMediaHandler $handler)
 {
     $this->handlers[$handler->getName()] = $handler;
     return $this;
 }
 /**
  * Constructor. Takes the configuration of the RemoveVideoHandler
  * @param array $configuration
  */
 public function __construct($priority, $configuration = array())
 {
     parent::__construct($priority);
     $this->configuration = $configuration;
 }
Пример #3
0
 /**
  * Constructor
  * @param int $priority
  * @param MimeTypeGuesserFactoryInterface $mimeTypeGuesserFactory
  */
 public function __construct($priority, MimeTypeGuesserFactoryInterface $mimeTypeGuesserFactory)
 {
     parent::__construct($priority);
     $this->mimeTypeGuesser = $mimeTypeGuesserFactory->get();
 }
 public function __construct($priority, $soundcloudApiKey)
 {
     parent::__construct($priority);
     $this->soundcloudApiKey = $soundcloudApiKey;
 }