Ejemplo n.º 1
0
#!/usr/bin/env php
<?php 
$base = dirname(__FILE__) . '/../';
if (strpos('@PHP-BIN@', '@PHP-BIN') === 0) {
    // stand-alone version is running
    set_include_path($base . PATH_SEPARATOR . get_include_path());
}
require_once $base . '/app/bootstrap.php';
$loader = Phrozn\Autoloader::getInstance();
$runner = new Phrozn\Runner\CommandLine($loader);
$runner->run();
unset($runner, $loader);
Ejemplo n.º 2
0
<?php

$path = realpath(dirname(__FILE__) . '/../');
set_include_path($path . PATH_SEPARATOR . get_include_path());
//Return loader instance.
require_once $path . '/Phrozn/Autoloader.php';
return Phrozn\Autoloader::getInstance();