for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Selami\AppFactories;
use Zend\ServiceManager\Factory\FactoryInterface;
use Interop\Container\ContainerInterface;
use Selami\Router;
use Selami\Foundation\App;
class SelamiAppFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : App
return new App($container->get('config')['app'], $container->get(Router::class), $container);
}