\CodeIgniterComposerScripts

ComposerScripts

These scripts are used by Composer during installs and updates to move files to locations within the system folder so that end-users do not need to use Composer to install a package, but can simply download

Summary

Methods
Properties
Constants
postUpdate()
moveEscaper()
moveKint()
No public properties found
No constants found
moveFile()
getClassFilePath()
removeDir()
$basePath
N/A
No private methods found
No private properties found
N/A

Properties

$basePath

$basePath : \CodeIgniter\type

Base path to use.

Type

\CodeIgniter\type

Methods

postUpdate()

postUpdate() 

After composer install/update, this is called to move the bare-minimum required files for our dependencies to appropriate locations.

Throws

\ReflectionException

moveEscaper()

moveEscaper() 

Moves the Zend Escaper files into our base repo so that it's available for packaged releases where the users don't user Composer.

Throws

\ReflectionException

moveKint()

moveKint() 

Moves the Kint file into our base repo so that it's available for packaged releases where the users don't user Composer.

moveFile()

moveFile(string  $source, string  $destination) : boolean

Move a file.

Parameters

string $source
string $destination

Returns

boolean

getClassFilePath()

getClassFilePath(string  $class) : string

Determine file path of a class.

Parameters

string $class

Throws

\ReflectionException

Returns

string

removeDir()

removeDir(  $dir) 

A recursive remove directory method.

Parameters

$dir