Skip to content

Commit

Permalink
Fix deprecations of Symfony 6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Jun 29, 2023
1 parent ffb1acb commit 9506701
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions BazingaJsTranslationBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
*/
class BazingaJsTranslationBundle extends Bundle
{
/**
* @return void
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
Expand Down
8 changes: 4 additions & 4 deletions Command/DumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DumpCommand extends Command

/**
* @param TranslationDumper $dumper
* @param $kernelRootDir
* @param string $kernelRootDir
*/
public function __construct(TranslationDumper $dumper, $projectDir)
{
Expand All @@ -43,7 +43,7 @@ public function __construct(TranslationDumper $dumper, $projectDir)
}

/**
* {@inheritDoc}
* @return void
*/
protected function configure()
{
Expand Down Expand Up @@ -80,7 +80,7 @@ protected function configure()
}

/**
* {@inheritDoc}
* @return void
*/
protected function initialize(InputInterface $input, OutputInterface $output)
{
Expand Down Expand Up @@ -112,7 +112,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
));

$this->dumper->dump($this->targetPath, $input->getOption('pattern'), $formats, $merge);

return 0;
}
}
2 changes: 2 additions & 0 deletions DependencyInjection/BazingaJsTranslationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class BazingaJsTranslationExtension extends Extension
{
/**
* Load configuration.
*
* @return void
*/
public function load(array $configs, ContainerBuilder $container)
{
Expand Down
3 changes: 3 additions & 0 deletions DependencyInjection/Compiler/AddLoadersPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
*/
class AddLoadersPass implements CompilerPassInterface
{
/**
* @return void
*/
public function process(ContainerBuilder $container)
{
if (!$container->hasDefinition('bazinga.jstranslation.controller')) {
Expand Down
3 changes: 3 additions & 0 deletions DependencyInjection/Compiler/TranslationResourceFilesPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
*/
class TranslationResourceFilesPass implements CompilerPassInterface
{
/**
* @return void
*/
public function process(ContainerBuilder $container)
{
if (!$container->has('translator.default')) {
Expand Down

0 comments on commit 9506701

Please sign in to comment.