Class Packager_Common_Base
Direct known subclasses
Packager_Common_StaticCopiesIndirect known subclasses
Packager_Phar, Packager_Phar_ResultCompleter, Packager_Php, Packager_Php_Base, Packager_Php_Completer, Packager_Php_Scripts_Completer, Packager_Php_Scripts_Dependencies, Packager_Php_Scripts_Order
Located at src/Packager/Common/Base.php
public
|
|
public static
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected static
|
|
public static
|
|
public static
|
|
public static
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
protected
|
$cfg
|
|
protected
array
|
$files
|
#
[]
|
protected
|
$cliScriptName
|
|
protected
string
|
$compilationType
|
#
''
|
protected
array
|
$exceptionsMessages
|
#
[]
|
protected
array
|
$exceptionsTraces
|
#
[]
|
protected
integer
|
$includedFilesCountTillNow
|
#
0
|
protected
array
|
$errorHandlerData
|
#
[]
|
protected
array
|
$errorResponse
|
#
[]
|
protected
array
|
$autoLoadedFiles
|
#
[]
|
protected static
array
|
$templatesExtensions
|
#
['phtml']
|
protected static
array
|
$fileTypesStoringTypes
|
#
[
'gzip' => [
'css', 'htc', 'js', 'txt', 'svg'
],
'binary' => [
'ico', 'gif', 'png', 'jpg', 'jpeg',
'zip', 'ttf', 'eot', 'otf', 'woff', 'woff2',
],
'base64' => [
// 'ini',
],
'template' => [
'phtml',
],
'text' => [
'ini', 'htm', 'html', 'xml', 'xsd', 'csv',
],
]
|
protected static
|
$instance
|
|
private static
array
|
$_cfgDefault
|
#
[
'sourcesDir' => '',
'releaseDir' => '',
'releaseFileName' => '/index.php',
'staticCopies' => [],
'excludePatterns' => [],
'includePatterns' => [],
'stringReplacements' => [],
'patternReplacements' => [],
'minifyTemplates' => 0,
'minifyPhp' => 0,
'keepPhpDocComments' => [],
// PHP compiling only:
'autoloadingOrderDetection' => TRUE,
'includeFirst' => [],
'includeLast' => [],
'phpFsMode' => 'PHP_PRESERVE_HDD',
'phpFunctionsToReplace' => [],
'phpFunctionsToKeep' => [],
'phpFunctionsToProcess' => [],
'errorReportingLevel' => E_ALL,
]
|
private static
array
|
$_htmlStyles
|
#
[
'success' => 'html,body{background:#005700;}',
'error' => 'html,body{background:#cd1818;}.xdebug-error,.xdebug-error th,.xdebug-error td{color:#000;text-shadow:none !important;font-size:125%;}.xdebug-var-dump font[color*=cc0000]{background:#fff;text-shadow:none;}',
]
|
private static
array
|
$_responseTemplates
|
#
[
'text' => "\n======================= %title =======================\n\n\n%h1\n\n\n%content\n\n",
'html' => '<!DOCTYPE HTML><html lang="en-US"><head><meta charset="UTF-8"><title>%title</title><style type="text/css">html,body{margin:30px;font-size:14px;color:#fff;text-align:left;line-height:1.5em;font-weight:bold;font-family:"consolas",courier new,monotype;text-shadow:1px 1px 0 rgba(0,0,0,.4);}h1{font-size:200%;line-height:1.5em;}h2{font-size:150%;line-height:1.5em;}%style</style></head><body><h1>%h1</h1>%content</body></html>',
]
|