PHP Трейт Acacha\Llum\Traits\LaravelConfigFile

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$noBash boolean Avoids using bash using stubs instead to modify config/app.php file.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

addAliases() защищенный метод

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

addLaravelIdeHelperProvider() защищенный метод

Add Laravel IDE Helper provider to config/app.php file.
protected addLaravelIdeHelperProvider ( ) : integer | null
Результат integer | null

addProviders() защищенный метод

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

alias() защищенный метод

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

checkIfLaravelConfigFileExists() защищенный метод

Check if Laravel config file exists.
protected checkIfLaravelConfigFileExists ( ) : boolean
Результат boolean

configAppFileAlreadyInstalled() защищенный метод

Check if config/app.php stub file is already installed.
protected configAppFileAlreadyInstalled ( ) : boolean
Результат boolean

initialize() защищенный метод

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() защищенный метод

Install llum custom config/app.php file.
protected installConfigFile ( ) : integer
Результат integer

installConfigFileWithBash() защищенный метод

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

installConfigFileWithStubs() защищенный метод

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

provider() защищенный метод

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

service() защищенный метод

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

Описание свойств

$noBash защищенное свойство

Avoids using bash using stubs instead to modify config/app.php file.
protected bool $noBash
Результат boolean