public function initialize(EventDispatcherInterface $dispatcher) { $this->dispatcher = $dispatcher; $dispatcher->connect(function (PopulateOptionsEvent $event) { $event->addAllowedMethod(WebDav::METHOD_REPORT); }); $dispatcher->connect([$this, 'serializePropertyNames']); $dispatcher->connect([$this, 'serializeProperties']); }
public function initialize(EventDispatcherInterface $dispatcher) { $dispatcher->connect(function (PopulateOptionsEvent $event) { if (!$event->resource->isCollection()) { $event->addAllowedMethod(WebDav::METHOD_PUT); } }); }
public function initialize(EventDispatcherInterface $dispatcher) { $dispatcher->connect([$this, 'populateOptions']); $dispatcher->connect([$this, 'serializeProperties']); $dispatcher->connect([$this, 'serializePropertyNames']); }
public function initialize(EventDispatcherInterface $dispatcher) { $dispatcher->connect(function (PopulateOptionsEvent $event) { $event->addAllowedMethod(WebDav::METHOD_PROPPATCH); }); }
public function initialize(EventDispatcherInterface $dispatcher) { $dispatcher->connect(function (PopulateOptionsEvent $event) { $event->addFeature('extended-mkcol'); }); }
public function bootEvents(EventDispatcherInterface $dispatcher) { $dispatcher->connect(function (ExpressContextBoundEvent $event, Configuration $config) { $event->set('@config', $config); }); }