Class JNamespacePsr4Map
- Depuis
- 4.0.0
◆ create()
Create the namespace file
- Renvoie
- boolean
- Depuis
- 4.0.0
◆ ensureMapFileExists()
Check if the namespace mapping file exists, if not create it
- Renvoie
- void
- Depuis
- 4.0.0
◆ exists()
Check if the file exists
- Renvoie
- boolean
- Depuis
- 4.0.0
◆ getNamespaces()
getNamespaces |
( |
string |
$type | ) |
|
|
private |
Get an array of namespaces with their respective path for the given extension type.
- Paramètres
-
string | $type | The extension type |
- Renvoie
- array
- Depuis
- 4.0.0
Références $baseDir, $count, $extension, $name, $namespace, $path, $type, $xml, elseif, JPATH_ADMINISTRATOR, JPATH_API, JPATH_LIBRARIES, JPATH_PLUGINS, et JPATH_SITE.
◆ load()
◆ writeNamespaceFile()
writeNamespaceFile |
( |
|
$elements | ) |
|
|
protected |
Write the Namespace mapping file
- Paramètres
-
array | $elements | Array of elements |
- Renvoie
- void
- Depuis
- 4.0.0
Backup the current error_reporting level and set a new level
We do this because file_put_contents can raise a Warning if it cannot write the autoload_psr4.php file and this will output to the response BEFORE the session has started, causing the session start to fail and ultimately leading us to a 500 Internal Server Error page just because of the output warning, which we can safely ignore as we can use an in-memory autoload_psr4 map temporarily, and display real errors later.
Références $content, $namespace, et $path.
◆ $cachedMap
◆ $file
La documentation de cette classe a été générée à partir du fichier suivant :