File: bootstrap.php

package info (click to toggle)
php-zeta-base 1.9.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,036 kB
  • sloc: php: 2,733; makefile: 9
file content (29 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
if ( ! @include __DIR__ . '/../vendor/autoload.php' )
{
    die(<<<'EOT'
You must set up the project dependencies, run the following commands:
wget http://getcomposer.org/composer.phar
php composer.phar install --dev

You can then run tests by calling:

phpunit
EOT
       );
}

function ezc_autoload( $className )
{
    if ( strpos( $className, '_' ) === false &&
         strpos( $className, 'Composer' ) === false &&
         strpos( $className, 'Invoker' ) === false &&
         strpos( $className, 'Symfony' ) === false )
    {
        ezcBase::autoload( $className );
    }
}

spl_autoload_register( 'ezc_autoload' );

ezcBase::setWorkingDirectory(__DIR__);