for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Doctrine\Bundle\DoctrineBundle\Dbal;
use Doctrine\DBAL\Schema\AbstractAsset;
class RegexSchemaAssetFilter implements SchemaAssetFilterInterface
{
private $filterExpression;
public function __construct(string $filterExpression)
$this->filterExpression = $filterExpression;
}
public function shouldIncludeAsset($assetName): bool
if ($assetName instanceof AbstractAsset) {
$assetName = $assetName->getName();
return preg_match($this->filterExpression, $assetName);