/** * @param MappedEventSubscriber $subscriber * @param EventManager $manager * @param Reader|null $reader */ protected function addSubscriber(MappedEventSubscriber $subscriber, EventManager $manager, Reader $reader = null) { if ($reader) { $subscriber->setAnnotationReader($reader); } $manager->addEventSubscriber($subscriber); }
public function __construct(MimeTypeGuesserInterface $mimeTypeGuesser = null) { parent::__construct(); $this->mimeTypeGuesser = $mimeTypeGuesser ? $mimeTypeGuesser : new MimeTypeGuesser(); }
public function __construct(array $managers = array()) { parent::__construct(); $this->managers = $managers; }
/** * __construct * * @param string $fileClass */ public function __construct($fileClass) { parent::__construct(); $this->setFileClass($fileClass); $this->uploadableSubscriberEvents = [Events::uploadablePreFileProcess, Events::uploadablePostFileProcess]; }
/** * TransformableListener constructor. * @param TransformerPool $transformerPool */ public function __construct(TransformerPool $transformerPool) { $this->transformerPool = $transformerPool; parent::__construct(); }