PHPStan\Rules\RegistryFactory::create PHP Method

create() public method

public create ( ) : Registry
return Registry
    public function create() : Registry
    {
        $tagToService = function (array $tags) {
            return array_map(function (string $serviceName) {
                return $this->container->getService($serviceName);
            }, array_keys($tags));
        };
        return new Registry($tagToService($this->container->findByTag(self::RULE_TAG)));
    }
RegistryFactory