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 string
private $outputDirectory;
* @var ConsoleIo
private $consoleIo;
public function __construct(string $outputDirectory, ConsoleIo $consoleIo)
$this->outputDirectory = $outputDirectory;
$this->consoleIo = $consoleIo;
}
public function create($port = 8000) : HttpServer
return new HttpServer($this->consoleIo, $this->outputDirectory, $port);