CleanupRedirectsCommand extends Command
Attributes
- #[AsCommand]
- 'redirects:cleanup'
- 'Cleanup old redirects periodically for given constraints like days, hit count or domains.'
Table of Contents
Properties
- $languageService : LanguageService
- $languageServiceFactory : LanguageServiceFactory
- $redirectRepository : RedirectRepository
Methods
- __construct() : mixed
- configure() : void
- execute() : int
Properties
$languageService
protected
LanguageService
$languageService
$languageServiceFactory read-only
protected
LanguageServiceFactory
$languageServiceFactory
$redirectRepository read-only
protected
RedirectRepository
$redirectRepository
Methods
__construct()
public
__construct(RedirectRepository $redirectRepository, LanguageServiceFactory $languageServiceFactory) : mixed
Parameters
- $redirectRepository : RedirectRepository
- $languageServiceFactory : LanguageServiceFactory
configure()
protected
configure() : void
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface