Class Yiisoft\YiiDevTool\Infrastructure\CodeUsage\NamespaceUsageFinderNameResolver
| Inheritance | Yiisoft\ |
|---|
Protected Properties
Public Methods
Property Details
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $namespaceUsageFinder | Yiisoft\ |
|
| $environment | string | |
| $errorHandler | ?\ |
|
| $options | array | |
public function __construct(
protected NamespaceUsageFinder $namespaceUsageFinder,
protected string $environment,
?ErrorHandler $errorHandler = null,
array $options = [],
) {
parent::__construct($errorHandler, $options);
}
| public void leaveNode ( \ | ||
| $node | \ |
|
public function leaveNode(Node $node): void
{
if ($node instanceof Node\Name\FullyQualified) {
$fullyQualifiedNamespace = $node->toCodeString();
$this->namespaceUsageFinder->registerNamespaceUsage($fullyQualifiedNamespace, $this->environment);
}
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.