#!/usr/bin/env php * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ $argv = $_SERVER['argv']; // allow the base path to be passed as the first argument, or default if (isset($argv[1])) { $appDir = $argv[1]; } else { if (!$appDir = realpath(__DIR__.'/../../../../../../../../app')) { exit('Looks like you don\'t have a standard layout.'); } } require_once $appDir.'/autoload.php'; \Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::doBuildBootstrap($appDir);