/** * Yaml constructor. * * @param string $path - Path. * @param array $options - Options. * * @throws MissingComponentException */ public function __construct($path, array $options) { if (!class_exists('\\Symfony\\Component\\Yaml\\Yaml')) { throw MissingComponentException::create('You need to install component "symfony/yaml" in order to handle YML files.'); } parent::__construct($path, $options); }