InteractsWithContainer
trait InteractsWithContainer
Properties
| protected Vite|null | $originalVite | The original Vite handler. |
|
| protected DeferredCallbackCollection|null | $originalDeferredCallbacksCollection | The original deferred callbacks collection. |
Methods
Register an instance of an object in the container.
Register an instance of an object in the container.
Mock a partial instance of an object in the container.
Instruct the container to forget a previously mocked / spied instance of an object.
Register a Vite handler that returns empty strings for all assets.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 33
protected mixed
swap(string $abstract, mixed $instance)
Register an instance of an object in the container.
at line 44
protected mixed
instance(string $abstract, mixed $instance)
Register an instance of an object in the container.
at line 55
protected MockInterface
mock(string $abstract, Closure|null $mock = null)
Mock an instance of an object in the container.
at line 63
protected MockInterface
partialMock(string $abstract, Closure|null $mock = null)
Mock a partial instance of an object in the container.
at line 71
protected MockInterface
spy(string $abstract, Closure|null $mock = null)
Spy an instance of an object in the container.
at line 81
protected InteractsWithContainer
forgetMock(string $abstract)
Instruct the container to forget a previously mocked / spied instance of an object.
at line 93
protected InteractsWithContainer
withoutVite()
Register a Vite handler that returns empty strings for all assets.
at line 102
HtmlString
__invoke(string|array $entrypoints, string|null $buildDirectory = null)
No description
at line 107
mixed
__call(string $method, array $parameters)
No description
at line 112
string
__toString()
No description
at line 117
InteractsWithContainer
useIntegrityKey(string|false $key)
No description
at line 122
InteractsWithContainer
useBuildDirectory(string $path)
No description
at line 127
InteractsWithContainer
useHotFile(string $path)
No description
at line 132
InteractsWithContainer
withEntryPoints(array $entryPoints)
No description
at line 137
InteractsWithContainer
useScriptTagAttributes(array|callable $attributes)
No description
at line 142
InteractsWithContainer
useStyleTagAttributes(array|callable $attributes)
No description
at line 147
InteractsWithContainer
usePreloadTagAttributes(array|callable|false $attributes)
No description
at line 152
array
preloadedAssets()
No description
at line 157
HtmlString
reactRefresh()
No description
at line 162
string
content(string $asset, string|null $buildDirectory = null)
No description
at line 167
string
asset(string $asset, string|null $buildDirectory = null)
No description