* working version
This commit is contained in:
17
src/App/Service/CleanupFactory.php
Normal file
17
src/App/Service/CleanupFactory.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
use Interop\Container\ContainerInterface;
|
||||
|
||||
class CleanupFactory
|
||||
{
|
||||
public function __invoke(ContainerInterface $container): Cleanup
|
||||
{
|
||||
/** @var ConfigProvider $configProvider */
|
||||
$configProvider = $container->get(ConfigProvider::class);
|
||||
return new Cleanup($configProvider);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user