Documentation

ViewMigration extends BaseModifier
in package

Migrates legacy "return type" views (and layouts) to Katana .blade.php documents. Introduced for the 1.3.0 render-engine change.

For every *.php file found under the configured directories that looks like a legacy return[...] view, the file content is converted and written next to it as *.blade.php, and the original *.php is removed.

Files that are not legacy views (no top-level return[...]) are left untouched.

Table of Contents

$in  : InputInterface
$out  : OutputInterface
$stepName  : string
$upgrade  : Upgrade
$version  : BaseVersion
$abortedRequiringUserAction  : bool
$planned  : array<string|int, mixed>
$skipped  : array<string|int, mixed>
__construct()  : mixed
abortRequiringUserAction()  : mixed
confirmAutomatedChange()  : bool
from()  : void
migrate()  : void
shouldSkipStep()  : mixed
configure()  : mixed
consider()  : void

Properties

$abortedRequiringUserAction

private bool $abortedRequiringUserAction = false

$planned

private array<string|int, mixed> $planned = []

array<int, array{from:string, to:string, kind:string, content:string}>

$skipped

private array<string|int, mixed> $skipped = []

array<int, array{file:string, reason:string}>

Methods

abortRequiringUserAction()

public abortRequiringUserAction() : mixed
Return values
mixed —

confirmAutomatedChange()

public confirmAutomatedChange() : bool
Return values
bool —

from()

public from(string|array<string|int, mixed> $dirs) : void
Parameters
$dirs : string|array<string|int, mixed>
Return values
void —

shouldSkipStep()

public shouldSkipStep() : mixed
Return values
mixed —

configure()

protected configure() : mixed
Return values
mixed —

consider()

private consider(string $path) : void
Parameters
$path : string
Return values
void —

Search results