Skip to content

Commit ec6a9c8

Browse files
authored
Fix case for flex bundle inclusion (#17)
1 parent 7b6f79d commit ec6a9c8

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ Use [composer](https://getcomposer.org/).
4040
composer require fdekker/log-viewer-bundle
4141
```
4242
If you don't use Symfony Flex, you'll need to manually enable the bundle:
43+
4344
```php
4445
# /config/bundles.php
4546
return [
4647
// ...
47-
FD\LogViewer\FdLogViewerBundle::class => ['all' => true],
48+
FD\LogViewer\FDLogViewerBundle::class => ['all' => true],
4849
];
4950
```
5051
And add the route by creating file `/config/routes/fd_log_viewer.php`:

dev/Kernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace FD\LogViewer\Dev;
66

77
use Exception;
8-
use FD\LogViewer\FdLogViewerBundle;
8+
use FD\LogViewer\FDLogViewerBundle;
99
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
1010
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
1111
use Symfony\Bundle\MonologBundle\MonologBundle;
@@ -28,7 +28,7 @@ public function registerBundles(): iterable
2828
new FrameworkBundle(),
2929
new MonologBundle(),
3030
new TwigBundle(),
31-
new FdLogViewerBundle(),
31+
new FDLogViewerBundle(),
3232
new WebProfilerBundle(),
3333
];
3434
}

src/Controller/IndexController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __invoke(): Response
3232
$folders = $this->folderOutputProvider->provide(DirectionEnum::Desc);
3333

3434
return $this->render(
35-
'@FdLogViewer/index.html.twig',
35+
'@FDLogViewer/index.html.twig',
3636
[
3737
'base_uri' => $baseUri,
3838
'folders' => $folders,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* @codeCoverageIgnore
1515
*/
16-
final class FdLogViewerBundle extends Bundle
16+
final class FDLogViewerBundle extends Bundle
1717
{
1818
public function build(ContainerBuilder $container): void
1919
{

tests/Unit/Controller/IndexControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testInvoke(): void
5050
->willReturn('url1', 'url2');
5151

5252
$this->expectRender(
53-
'@FdLogViewer/index.html.twig',
53+
'@FDLogViewer/index.html.twig',
5454
[
5555
'base_uri' => 'baseUri',
5656
'folders' => [$folder],

tests/Utility/TestKernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace FD\LogViewer\Tests\Utility;
66

77
use Exception;
8-
use FD\LogViewer\FdLogViewerBundle;
8+
use FD\LogViewer\FDLogViewerBundle;
99
use FD\LogViewer\Service\JsonManifestAssetLoader;
1010
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
1111
use Symfony\Bundle\MonologBundle\MonologBundle;
@@ -24,7 +24,7 @@ class TestKernel extends BaseKernel implements CompilerPassInterface
2424
*/
2525
public function registerBundles(): iterable
2626
{
27-
return [new FrameworkBundle(), new MonologBundle(), new TwigBundle(), new FdLogViewerBundle()];
27+
return [new FrameworkBundle(), new MonologBundle(), new TwigBundle(), new FDLogViewerBundle()];
2828
}
2929

3030
public function getCacheDir(): string

0 commit comments

Comments
 (0)