for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is a part of Sculpin.
*
* (c) Dragonfly Development Inc.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sculpin\Bundle\SculpinBundle\HttpServer;
use Sculpin\Core\Io\ConsoleIo;
final class HttpServerFactory
{
/**
* @var ConsoleIo
private $io;
public function __construct(ConsoleIo $io)
$this->io = $io;
}
public function create(string $docroot, int $port = 8000) : HttpServer
return new HttpServer($this->io, $docroot, $port);