Exemplo n.º 1
0
 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']);
 }
Exemplo n.º 2
0
 public function initialize(EventDispatcherInterface $dispatcher)
 {
     $dispatcher->connect(function (PopulateOptionsEvent $event) {
         if (!$event->resource->isCollection()) {
             $event->addAllowedMethod(WebDav::METHOD_PUT);
         }
     });
 }
Exemplo n.º 3
0
 public function initialize(EventDispatcherInterface $dispatcher)
 {
     $dispatcher->connect([$this, 'populateOptions']);
     $dispatcher->connect([$this, 'serializeProperties']);
     $dispatcher->connect([$this, 'serializePropertyNames']);
 }
Exemplo n.º 4
0
 public function initialize(EventDispatcherInterface $dispatcher)
 {
     $dispatcher->connect(function (PopulateOptionsEvent $event) {
         $event->addAllowedMethod(WebDav::METHOD_PROPPATCH);
     });
 }
Exemplo n.º 5
0
 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);
     });
 }