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