Skip to content

Commit 79c44b5

Browse files
committed
Fix "command cannot have an empty name" error
1 parent bc9fb05 commit 79c44b5

File tree

9 files changed

+4
-111
lines changed

9 files changed

+4
-111
lines changed

src/Command/RemoveRedirectsCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
class RemoveRedirectsCommand extends Command
1313
{
14-
protected static $defaultName = 'setono:sylius-redirect:remove';
14+
protected static string $defaultName = 'setono:sylius-redirect:remove';
1515

16-
protected static $defaultDescription = 'This command will remove redirects that have not been accessed later than x days ago where x is the `setono_sylius_redirect.remove_after` parameter';
16+
protected static string $defaultDescription = 'This command will remove redirects that have not been accessed later than x days ago where x is the `setono_sylius_redirect.remove_after` parameter';
1717

1818
private RedirectRepositoryInterface $redirectRepository;
1919

@@ -25,6 +25,8 @@ class RemoveRedirectsCommand extends Command
2525
public function __construct(RedirectRepositoryInterface $redirectRepository, int $removeAfter)
2626
{
2727
parent::__construct();
28+
$this->setName(self::$defaultName);
29+
$this->setDescription(self::$defaultDescription);
2830

2931
$this->redirectRepository = $redirectRepository;
3032
$this->removeAfter = $removeAfter;

src/Resources/public/admin/js/updateProductSlug.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/Resources/public/admin/js/updateSlug.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Resources/public/admin/js/updateTaxonSlug.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/Resources/views/Admin/Product/_javascripts.html.twig

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Resources/views/Admin/Taxon/_javascripts.html.twig

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Resources/views/Admin/_javascripts.html.twig

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/Application/templates/bundles/SyliusAdminBundle/Product/_slugField.html.twig

Lines changed: 0 additions & 18 deletions
This file was deleted.

tests/Application/templates/bundles/SyliusAdminBundle/Taxon/_slugField.html.twig

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)