UserFrosting API

SetupEnvCommand extends BaseCommand

Setup wizard CLI Tools.

Helper command to setup the 'UF_MODE' var of the .env file.

Tags
author

Alex Weissman (https://alexanderweissman.com)

Table of Contents

$envPath string
$modeKey string
$io SymfonyStyle
$ci ContainerInterface
configure() {@inheritdoc} mixed
execute() {@inheritdoc} mixed
askForEnv() Ask for env mode. string
initialize() {@inheritdoc} mixed
setContainer() Setup the global container object. void
isProduction() Return if the app is in production mode. bool

Properties

$envPath

protected string $envPath = \UserFrosting\APP_DIR . '/.env'

Methods

configure()

{@inheritdoc}

protected configure( ) : mixed
Return values
mixed

execute()

{@inheritdoc}

protected execute( $input : InputInterface , $output : OutputInterface ) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Return values
mixed

askForEnv()

Ask for env mode.

protected askForEnv( $args : InputInterface ) : string
Parameters
$args : InputInterface

Command arguments

Return values
string

The new env mode

initialize()

{@inheritdoc}

protected initialize( $input : InputInterface , $output : OutputInterface ) : mixed
Parameters
$input : InputInterface
$output : OutputInterface
Return values
mixed

setContainer()

Setup the global container object.

public setContainer( $ci : ContainerInterface ) : void
Parameters
$ci : ContainerInterface

isProduction()

Return if the app is in production mode.

protected isProduction( ) : bool

@return bool True/False if the app is in production mode

Return values
bool

Search results