/** * {@inheritdoc} */ public function removeResource($key) { $resource = $this->getResource($key); $this->wrapped->removeResource($key); $this->dispatcher->dispatch(Events::RESOURCES_REMOVED, new ResourceEvent($key, $resource, $this->wrapped)); return $this; }
/** * {@inheritdoc} */ public function cast($value) { return $this->container->getResource(substr($value, 1)); }