for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Svycka\Settings\Service\Factory;
use Interop\Container\ContainerInterface;
use Svycka\Settings\Collection\CollectionsManager;
use Svycka\Settings\Service\SettingsService;
/**
* @author Vytautas Stankus <[email protected]>
* @license MIT
*/
final class SettingsServiceFactory
{
public function __invoke(ContainerInterface $container)
/** @var CollectionsManager $collectionsManager */
$collectionsManager = $container->get(CollectionsManager::class);
return new SettingsService($collectionsManager);
}