/** * Whether the resource is enabled or not. * * @param ResourceInterface $resource * * @return bool */ public function enabled(ResourceInterface $resource) { return $resource->exists() && $resource instanceof DirectoryResource; }
/** * Whether the resource is enabled or not. * * @param ResourceInterface $resource * * @return bool */ public function enabled(ResourceInterface $resource) { return $resource->exists() && $this->isFileResource($resource); }