src/Viserio/Component/StaticalProxy/AliasLoader.php
public function aliasPattern($patterns, string $translation = null): void
    {
        if (! \is_array($patterns)) {
            $patterns = [$patterns => $translation];
        }

        foreach ($patterns as $patternKey => $resolver) {
            if (! $resolver instanceof Resolver) {
                $resolver = new Resolver($patternKey, $resolver);
            }

            $this->patterns[$patternKey] = $resolver;
        }
    }
public function aliasPattern($patterns, string $translation = null): void
    {
        if (! \is_array($patterns)) {
            $patterns = [$patterns => $translation];
        }

        foreach ($patterns as $patternKey => $resolver) {
            if (! $resolver instanceof Resolver) {
                $resolver = new Resolver($patternKey, $resolver);
            }

            $this->patterns[$patternKey] = $resolver;
        }
    }
{@inheritdoc}