for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MediaMonks\Crawler\Url\Matcher;
use League\Uri\Schemes\Http as Url;
class PathRegexUrlMatcher implements UrlMatcherInterface
{
/**
* @var string
*/
private $pattern;
* @param string $pattern
public function __construct($pattern)
$this->pattern = $pattern;
}
* @param Url $url
* @return bool
public function matches(Url $url)
return (bool)preg_match($this->pattern, $url->getPath());