Skip to content

Commit 45e93ee

Browse files
committed
fabbot
1 parent 54dfebb commit 45e93ee

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3173,6 +3173,6 @@ private function getPublicDirectory(ContainerBuilder $container): string
31733173
$container->addResource(new FileResource($composerFilePath));
31743174
$composerConfig = json_decode(file_get_contents($composerFilePath), true);
31753175

3176-
return isset($composerConfig['extra']['public-dir']) ? $projectDir . '/' . $composerConfig['extra']['public-dir'] : $defaultPublicDir;
3176+
return isset($composerConfig['extra']['public-dir']) ? $projectDir.'/'.$composerConfig['extra']['public-dir'] : $defaultPublicDir;
31773177
}
31783178
}

src/Symfony/Component/AssetMapper/Command/AssetMapperCompileCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@
1717
use Symfony\Component\AssetMapper\Event\PreAssetsCompileEvent;
1818
use Symfony\Component\AssetMapper\ImportMap\ImportMapManager;
1919
use Symfony\Component\AssetMapper\Path\PublicAssetsFilesystemInterface;
20-
use Symfony\Component\AssetMapper\Path\PublicAssetsPathResolverInterface;
2120
use Symfony\Component\Console\Attribute\AsCommand;
2221
use Symfony\Component\Console\Command\Command;
23-
use Symfony\Component\Console\Exception\InvalidArgumentException;
2422
use Symfony\Component\Console\Input\InputInterface;
2523
use Symfony\Component\Console\Output\OutputInterface;
2624
use Symfony\Component\Console\Style\SymfonyStyle;
27-
use Symfony\Component\Filesystem\Filesystem;
2825
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2926

3027
/**
@@ -93,7 +90,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9390
if ($this->isDebug) {
9491
$io->warning(sprintf(
9592
'You are compiling assets in development. Symfony will not serve any changed assets until you delete the files in the "%s" directory.',
96-
$this->shortenPath(dirname($manifestPath))
93+
$this->shortenPath(\dirname($manifestPath))
9794
));
9895
}
9996

src/Symfony/Component/AssetMapper/CompiledAssetMapperConfigReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function loadConfig(string $filename): array
3333
public function saveConfig(string $filename, array $data): string
3434
{
3535
$path = $this->directory.'/'.$filename;
36-
@mkdir(dirname($path), 0777, true);
36+
@mkdir(\dirname($path), 0777, true);
3737
file_put_contents($path, json_encode($data, \JSON_PRETTY_PRINT | \JSON_THROW_ON_ERROR));
3838

3939
return $path;

src/Symfony/Component/AssetMapper/Tests/CompiledAssetMapperConfigReaderTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\AssetMapper\Tests;
413

514
use PHPUnit\Framework\TestCase;

src/Symfony/Component/AssetMapper/Tests/Path/LocalPublicAssetsFilesystemTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\AssetMapper\Tests\Path;
413

514
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy