<?php

use Symfony\Component\Debug\Debug;

if (!file_exists(dirname(__DIR__) . "/vendor/autoload.php")) {
  die(
    'Set up the project dependencies using the following commands:' . PHP_EOL .
    'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
    'php composer.phar install' . PHP_EOL
  );
}
$loader = require_once dirname(__DIR__) . "/vendor/autoload.php";
/* @var $loader Composer\Autoload\ClassLoader */
$loader->add("Apnet\\Dev\\", __DIR__ . "/src");

chdir(dirname(__DIR__));
Debug::enable();

<?php

use Symfony\Component\Debug\Debug;

if (!file_exists(dirname(__DIR__) . "/vendor/autoload.php")) {
  die(
    'Set up the project dependencies using the following commands:' . PHP_EOL .
    'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
    'php composer.phar install' . PHP_EOL
  );
}
require_once dirname(__DIR__) . "/vendor/autoload.php";

$loader = new Composer\Autoload\ClassLoader();
$loader->add("Apnet\\Dev\\", __DIR__ . "/src");
$loader->register();

chdir(dirname(__DIR__));
Debug::enable();

Create and register new autoloader
Create and register new autoloader
