Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • patch-1
  • zf-3.x
  • Fix
  • origin/trunk
  • origin/new_version
  • 1.1.1
  • 1.1.0
  • 1.0.0
9 results

init_autoloader.php

Blame
  • Forked from lib / unicaen / db-import
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    init_autoloader.php 403 B
    <?php
    
    if (! file_exists(__DIR__ . '/vendor/autoload.php')) {
        throw new RuntimeException('File vendor/autoload.php not found. Run `php composer.phar install`.');
    }
    require_once __DIR__ . '/vendor/autoload.php';
    
    if (! class_exists('Zend\Loader\AutoloaderFactory')) {
        throw new RuntimeException('Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable.');
    }