-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements and namespace ownerschip
- Loading branch information
Showing
17 changed files
with
89 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace gertvdb\LegacyBridgeBundle\Configuration; | ||
|
||
final class Option | ||
{ | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public const OPTION_ROUTE_LISTENER_CLASS = 'legacy_bridge_bundle.router_listener.class'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public const OPTION_BOOTER_LISTENER_CLASS = 'legacy_bridge_bundle.legacy_booter_listener.class'; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace gertvdb\LegacyBridgeBundle\Event; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace gertvdb\LegacyBridgeBundle\EventListener; | ||
|
||
use Exception; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace gertvdb\LegacyBridgeBundle\Kernel; | ||
|
||
use RuntimeException; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* Bridge bundle for legacy projects | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use gertvdb\LegacyBridgeBundle\Configuration\Option; | ||
use gertvdb\LegacyBridgeBundle\EventListener\LegacyBooterListener; | ||
use gertvdb\LegacyBridgeBundle\EventListener\RouterListener; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
use function Symfony\Component\DependencyInjection\Loader\Configurator\service; | ||
|
||
/** | ||
* Container configurator | ||
* @param ContainerConfigurator $containerConfigurator | ||
*/ | ||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$parameters = $containerConfigurator->parameters(); | ||
|
||
$parameters->set(Option::OPTION_ROUTE_LISTENER_CLASS, RouterListener::class); | ||
$parameters->set(Option::OPTION_BOOTER_LISTENER_CLASS, LegacyBooterListener::class); | ||
|
||
$services = $containerConfigurator->services(); | ||
|
||
$services->set('legacy_bridge_bundle.router_listener', '%legacy_bridge_bundle.router_listener.class%') | ||
->tag('kernel.event_subscriber', []) | ||
->tag('monolog.logger', ['channel' => 'event']) | ||
->autowire() | ||
->args([ | ||
service('router_listener'), | ||
service('legacy_bridge_bundle.legacy_kernel'), | ||
service('?logger') | ||
]); | ||
|
||
$services->set('legacy_bridge_bundle.legacy_booter_listener', '%legacy_bridge_bundle.legacy_booter_listener.class%') | ||
->tag('kernel.event_subscriber', []) | ||
->autowire() | ||
->args([ | ||
service('legacy_bridge_bundle.legacy_kernel'), | ||
service('service_container') | ||
]); | ||
}; |
This file was deleted.
Oops, something went wrong.