Webiny\Component\Config\Bridge\Yaml\YamlInterface::setResource PHP Method

setResource() public method

Set driver resource to work on
public setResource ( mixed $resource )
$resource mixed
    public function setResource($resource);

Usage Example

Beispiel #1
0
 /**
  * Parse config resource and build config array
  *
  * @throws ConfigException
  * @return array Config data array
  */
 protected function getArrayInternal()
 {
     try {
         return $this->yaml->setResource($this->resource)->getArray();
     } catch (\Exception $e) {
         throw new ConfigException($e->getMessage());
     }
 }
All Usage Examples Of Webiny\Component\Config\Bridge\Yaml\YamlInterface::setResource