$directory =
$this->projectDir . '/custom/plugins/' .
$pluginName;
if (file_exists($directory)) { $io->
error(sprintf('Plugin directory %s already exists',
$directory));
return self::FAILURE;
} $io->
writeln('Creating theme structure under ' .
$directory);
try { $this->
createDirectory($directory . '/src/Resources/app/'
);
$this->
createDirectory($directory . '/src/Resources/app/storefront/'
);
$this->
createDirectory($directory . '/src/Resources/app/storefront/src/'
);
$this->
createDirectory($directory . '/src/Resources/app/storefront/src/scss'
);
$this->
createDirectory($directory . '/src/Resources/app/storefront/src/assets'
);
$this->
createDirectory($directory . '/src/Resources/app/storefront/dist'
);
$this->
createDirectory($directory . '/src/Resources/app/storefront/dist/storefront'
);
$this->
createDirectory($directory . '/src/Resources/app/storefront/dist/storefront/js'
);
} catch (\RuntimeException
$e) { $io->
error($e->
getMessage());
return self::FAILURE;
}