public function __construct($name = 'setup:local', YamlHasherInterface $yamlHasher = null) { parent::__construct($name); $this->yamlHasher = $yamlHasher ? $yamlHasher : new YamlHasher(); }
public function __construct($name = null, MySQLDumpFactoryInterface $pdoFactory = null, Filesystem $filesystem = null) { parent::__construct($name); $this->pdoFactory = $pdoFactory ? $pdoFactory : new MySQLDumpFactory(); $this->filesystem = $filesystem ? $filesystem : new Filesystem(); }