Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Namespaces | Variables
classmap_generator.php File Reference

Go to the source code of this file.

Namespaces

 Zend_Loader
 

Variables

 $libPath = dirname(__FILE__) . '/../library'
 
if(!is_dir($libPath)) else
 
 $loader = new Zend_Loader_StandardAutoloader(array('autoregister_zf' => true))
 
 $rules
 
 try
 
catch(Zend_Console_Getopt_Exception $e) if($opts->getOption('h')) $ignoreNamespaces = array()
 
if(isset($opts->i)) $relativePathForClassmap = ''
 
if(isset($opts->l)) $libraryPath = str_replace(DIRECTORY_SEPARATOR, '/', realpath($libraryPath))
 
 $usingStdout = false
 
 $appending = $opts->getOption('a')
 
 $output = $libraryPath . '/autoload_classmap.php'
 
if(isset($opts->o)) if(! $usingStdout) $l = new Zend_File_ClassFileLocator($libraryPath)
 
 $map = new stdClass
 
 $content = preg_replace("#(=> ')#", "=> dirname(__FILE__) . '/", $content)
 
 $maxWidth = 0
 

Variable Documentation

◆ $appending

$appending = $opts->getOption('a')

Definition at line 99 of file classmap_generator.php.

◆ $content

$content = preg_replace("#(=> ')#", "=> dirname(__FILE__) . '/", $content)

Definition at line 212 of file classmap_generator.php.

◆ $ignoreNamespaces

catch (Zend_Console_Getopt_Exception $e) if ( $opts->getOption( 'h')) $ignoreNamespaces = array()

Definition at line 81 of file classmap_generator.php.

◆ $l

if (isset( $opts->o)) if (! $usingStdout) $l = new Zend_File_ClassFileLocator($libraryPath)

Definition at line 163 of file classmap_generator.php.

◆ $libPath

$libPath = dirname(__FILE__) . '/../library'

Generate class maps for use with autoloading.

Usage: –help|-h Get usage message –library|-l [ <string> ] Library to parse; if none provided, assumes current directory –output|-o [ <string> ] Where to write autoload file; if not provided, assumes "autoload_classmap.php" in library directory –append|-a Append to autoload file if it exists –overwrite|-w Whether or not to overwrite existing autoload file –ignore|-i [ <string> ] Comma-separated namespaces to ignore

Definition at line 37 of file classmap_generator.php.

◆ $libraryPath

if (isset( $opts->l)) $libraryPath = str_replace(DIRECTORY_SEPARATOR, '/', realpath($libraryPath))

Definition at line 96 of file classmap_generator.php.

◆ $loader

$loader = new Zend_Loader_StandardAutoloader(array('autoregister_zf' => true))

Definition at line 55 of file classmap_generator.php.

◆ $map

$map = new stdClass

Definition at line 167 of file classmap_generator.php.

◆ $maxWidth

$maxWidth = 0

Definition at line 226 of file classmap_generator.php.

◆ $output

$output = $libraryPath . '/autoload_classmap.php'

Definition at line 100 of file classmap_generator.php.

◆ $relativePathForClassmap

if (isset( $opts->i)) $relativePathForClassmap = ''

Definition at line 86 of file classmap_generator.php.

◆ $rules

$rules
Initial value:
= array(
'help|h' => 'Get usage message',
'library|l-s' => 'Library to parse; if none provided, assumes current directory',
'output|o-s' => 'Where to write autoload file; if not provided, assumes "autoload_classmap.php" in library directory',
'append|a' => 'Append to autoload file if it exists',
'overwrite|w' => 'Whether or not to overwrite existing autoload file',
'ignore|i-s' => 'Comma-separated namespaces to ignore',
)

Definition at line 59 of file classmap_generator.php.

◆ $usingStdout

$usingStdout = false

Definition at line 98 of file classmap_generator.php.

◆ else

foreach ( $l as $file) if ( $appending) else
Initial value:
{
if (false === include(dirname(__FILE__) . '/../library/Zend/Loader/StandardAutoloader.php')) {
echo "Unable to locate autoloader via library; aborting" . PHP_EOL;
exit(2);
}
}
$libraryPath = getcwd()
defined('MTF_BOOT_FILE')||define('MTF_BOOT_FILE' __FILE__
Definition: bootstrap.php:7
exit
Definition: redirect.phtml:12
if(isset($opts->l)) $libraryPath

Definition at line 44 of file classmap_generator.php.

◆ try

try
Initial value:

Definition at line 68 of file classmap_generator.php.