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

Go to the source code of this file.

Variables

const BP dirname(__DIR__)
 
const VENDOR_PATH BP . '/app/etc/vendor_path.php'
 
if(!file_exists(VENDOR_PATH)) $vendorDir = require VENDOR_PATH
 
 $vendorAutoload = BP . "/{$vendorDir}/autoload.php"
 
if(file_exists($vendorAutoload)) else
 

Variable Documentation

◆ $vendorAutoload

$vendorAutoload = BP . "/{$vendorDir}/autoload.php"

Definition at line 26 of file autoload.php.

◆ $vendorDir

if (!file_exists(VENDOR_PATH)) $vendorDir = require VENDOR_PATH

Definition at line 25 of file autoload.php.

◆ BP

const BP dirname(__DIR__)

Shortcut constant for the root directory

Definition at line 14 of file autoload.php.

◆ else

if (file_exists( $vendorAutoload)) else
Initial value:
{
throw new \Exception(
'Vendor autoload is not found. Please run \'composer install\' under application root directory.'
)

Definition at line 31 of file autoload.php.

◆ VENDOR_PATH

const VENDOR_PATH BP . '/app/etc/vendor_path.php'

Definition at line 16 of file autoload.php.