for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FH\Bundle\MultiSiteBundle\Site;
use Symfony\Component\Routing\RequestContext;
/**
* @author Joris van de Sande <[email protected]>
*/
final class SiteNotFoundException extends \RuntimeException
{
public static function withRequestContext(RequestContext $requestContext): self
return new self(sprintf('No site found for hostname %s and path %s', $requestContext->getHost(), $requestContext->getPathInfo()));
}