PHP Trait Acacha\Llum\Traits\LaravelConfigFile

Mostra file Open project: acacha/llum

Protected Properties

Property Type Description
$noBash boolean Avoids using bash using stubs instead to modify config/app.php file.

Protected Methods

Method Description
addAliases ( $aliases ) Add aliases to Laravel config file.
addLaravelIdeHelperProvider ( ) : integer | null Add Laravel IDE Helper provider to config/app.php file.
addProviders ( $providers ) Add providers to Laravel config file.
alias ( $aliasName, $aliasClass ) Installs alias/facade in laravel config/app.php file.
checkIfLaravelConfigFileExists ( ) : boolean Check if Laravel config file exists.
configAppFileAlreadyInstalled ( ) : boolean Check if config/app.php stub file is already installed.
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
installConfigFile ( ) : integer Install llum custom config/app.php file.
installConfigFileWithBash ( ) Install /config/app.php file using bash script.
installConfigFileWithStubs ( ) Install /stubs/app.php into /config/app.php.
provider ( $provider ) Installs provider in laravel config/app.php file.
service ( $file, $outputFile = null ) Add service/s from file to Laravel config/services.php.

Private Methods

Method Description
addAlias ( string $alias ) : integer | null Add alias to config/app.php file.
addFileIntoMountPoint ( $mountpoint, $fileToInsert, $outputFile = null ) : mixed Insert file into file using mountpoint.
addProvider ( $provider ) : integer | null Add provider to config/app.php file.
addService ( $file, $outputFile = null ) : integer | null Add service from file to config/services.php file.
addTextIntoMountPoint ( string $mountpoint, $textToAdd ) : integer | null Insert text into file using mountpoint. Mountpoint is maintained at file.
isNoBashActive ( ) : boolean Check is --no-bash option is active.
scapeSingleQuotes ( string $str ) : string scape single quotes for sed using \x27.
setupLaravelConfigFile ( $providers, $aliases ) : integer Setup laravel config file adding providers and aliases.
showWarningIfLaravelConfigAlreadySupportsLlum ( ) : integer Show warning if Laravel config file already supports llum.
testLaravelConfigFileExists ( ) : integer Test Laravel config file exists.

Method Details

addAliases() protected method

Add aliases to Laravel config file.
protected addAliases ( $aliases )
$aliases

addLaravelIdeHelperProvider() protected method

Add Laravel IDE Helper provider to config/app.php file.
protected addLaravelIdeHelperProvider ( ) : integer | null
return integer | null

addProviders() protected method

Add providers to Laravel config file.
protected addProviders ( $providers )
$providers

alias() protected method

Installs alias/facade in laravel config/app.php file.
protected alias ( $aliasName, $aliasClass )
$aliasName
$aliasClass

checkIfLaravelConfigFileExists() protected method

Check if Laravel config file exists.

configAppFileAlreadyInstalled() protected method

Check if config/app.php stub file is already installed.

initialize() protected method

protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

installConfigFile() protected method

Install llum custom config/app.php file.
protected installConfigFile ( ) : integer
return integer

installConfigFileWithBash() protected method

Install /config/app.php file using bash script.

installConfigFileWithStubs() protected method

Install /stubs/app.php into /config/app.php.

provider() protected method

Installs provider in laravel config/app.php file.
protected provider ( $provider )
$provider

service() protected method

Add service/s from file to Laravel config/services.php.
protected service ( $file, $outputFile = null )
$file

Property Details

$noBash protected_oe property

Avoids using bash using stubs instead to modify config/app.php file.
protected bool $noBash
return boolean