App Class
Aurora\App Namespace
Interfaces
Properties
container
Container instance
protected $container: \Container
Constructor
__construct
Constructor
Parameters
Psr\Container\ContainerInterface
$container
— Container instance
Signature
public function __construct(Psr\Container\ContainerInterface $container)
Methods
__construct
Constructor
Parameters
-
Psr\Container\ContainerInterface
$container
— Container instance
Signature
public function __construct(Psr\Container\ContainerInterface $container)
isConsole
Determines whether the app is running from the console of not
Return Value
bool
Signature
public function isConsole(): bool
createFromStub
Create an item from a stub
Parameters
-
string
$stub
— Stub path -
string
$path
— Destination path -
array
$replace
— Replacements array
Return Value
bool
Signature
public function createFromStub(string $stub, string $path, array $replace = []): bool