in src/Utils/ContainerExec.php [54:77]
public function __construct(
$image,
$commands,
$workdir,
$cloudSqlInstances,
$gcloud = null
) {
if (!is_dir($workdir)) {
throw new \InvalidArgumentException("$workdir is not a directory");
}
$this->gcloud = ($gcloud == null) ? new Gcloud() : $gcloud;
if (class_exists(\Twig_Loader_Filesystem::class)
&& class_exists(\Twig_Environment::class)) {
$loader = new \Twig_Loader_Filesystem(__DIR__ . '/templates');
$this->twig = new \Twig_Environment($loader);
} else {
$loader = new \Twig\Loader\FilesystemLoader(__DIR__ . '/templates');
$this->twig = new \Twig\Environment($loader);
}
$this->image = $image;
$this->commands = $commands;
$this->cloudSqlInstances = $cloudSqlInstances;
$this->workdir = $workdir;
}