for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bavix\Router\Rules;
use Bavix\Router\RegExp;
use Bavix\Router\Resolable;
use Bavix\Router\Rule;
class PrefixRule extends Rule
{
use Resolable;
/**
* @var string
*/
protected $protocol;
protected $host;
* @inheritdoc
protected function prepare(): void
$this->protocol = new RegExp('\w+');
$this->host = new RegExp('[^\/]+');
}