return 0;
} private function shortenPath(string
$path): string
{ return str_replace($this->projectDir.'/', '',
$path);
} private function createManifestAndWriteFiles(SymfonyStyle
$io, string
$publicDir): array
{ $allAssets =
$this->assetMapper->
allAssets();
$io->
comment(sprintf('Compiling assets to <info>%s%s</info>',
$publicDir,
$this->publicAssetsPathResolver->
resolvePublicPath(''
)));
$manifest =
[];
foreach ($allAssets as $asset) { // $asset->getPublicPath() will start with a "/"
$targetPath =
$publicDir.
$asset->publicPath;
if (!
is_dir($dir = \
dirname($targetPath))) { $this->filesystem->
mkdir($dir);
}