class UsedViewInAnotherViewCollector

Traits

Constants

private VIEW_DIRECTIVES

The directives that render views, with the view parameters of the factory method each one compiles to, by name and position.

Upstream matches the first quoted string after @extends and the @include directives, so @includeWhen collected part of its condition, @includeFirst only its first view, and @each none of its views.

private COMPONENT_TAG_REGEX

The names of opening Blade component tags, such as <x-alert>, <x-forms.input /> and <x-dashboard::panel>, spelled as ComponentTagCompiler matches them.

Upstream matches only the x- prefix and stops at ::, so namespaced components lost their name.

Properties

protected Container|null $container from  HasContainer

Methods

void
setContainer(Container $container)

Set the container used for resolution.

getContainer()

Return the current container.

mixed
resolve(string $abstract)

Resolve the given type from the container.

__construct(ViewParser $viewParser, BladeScanner $bladeScanner, ViewFileHelper $viewFileHelper, Filesystem $filesystem)

Create a new collector instance.

array
getUsedViews()

Get the views referenced from other views.

Details

in HasContainer at line 19
void setContainer(Container $container)

Set the container used for resolution.

Parameters

Container $container

Return Value

void

in HasContainer at line 27
Container getContainer()

Return the current container.

Return Value

Container

in HasContainer at line 35
mixed resolve(string $abstract)

Resolve the given type from the container.

Parameters

string $abstract

Return Value

mixed

at line 70
__construct(ViewParser $viewParser, BladeScanner $bladeScanner, ViewFileHelper $viewFileHelper, Filesystem $filesystem)

Create a new collector instance.

Parameters

ViewParser $viewParser
BladeScanner $bladeScanner
ViewFileHelper $viewFileHelper
Filesystem $filesystem

at line 83
array getUsedViews()

Get the views referenced from other views.

Return Value

array