Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@
"symfony/phpunit-bridge": "^6.0|^7.0|^8.0",
"symfony/process": "^5.4|^6.0|^7.0|^8.0"
},
"extra": {
"symfony": {
"bundles": {
"Bref\\SymfonyBridge\\BrefBundle": ["all"]
}
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
Expand Down
12 changes: 4 additions & 8 deletions src/BrefBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

namespace Bref\SymfonyBridge;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class BrefBundle extends Bundle
/**
* @deprecated Register {@see BrefSymfonyBridgeBundle} instead, which Symfony Flex registers automatically.
*/
class BrefBundle extends BrefSymfonyBridgeBundle
{
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new CloudWatchMonologFormatterPass);
}
}
18 changes: 18 additions & 0 deletions src/BrefSymfonyBridgeBundle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php declare(strict_types=1);

namespace Bref\SymfonyBridge;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* Named after the package so that Symfony Flex registers it in `config/bundles.php` when the package is installed:
* without a recipe, Flex looks for `<Vendor><Package>Bundle`.
*/
class BrefSymfonyBridgeBundle extends Bundle
{
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new CloudWatchMonologFormatterPass);
}
}
Loading