Subversion Repositories php-qbpwcf

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 liveuser 1
<?php
2
 
3
/**
4
 * Find the auto loader file
5
 */
6
$files = [
7
    __DIR__ . '/../vendor/autoload.php',
8
    __DIR__ . '/../../vendor/autoload.php',
9
    __DIR__ . '/../../../vendor/autoload.php',
10
    __DIR__ . '/../../../../vendor/autoload.php',
11
];
12
 
13
foreach ($files as $file) {
14
    if (file_exists($file)) {
15
        $loader = require $file;
16
        $loader->addPsr4('Ratchet\\RFC6455\\Test\\', __DIR__);
17
        break;
18
    }
19
}