#!/usr/bin/env php
<?php

/**
 * This file is part of the package demosplan.
 *
 * (c) 2010-present DEMOS plan GmbH, for more information see the license file.
 *
 * All rights reserved
 */

use demosplan\DemosPlanCoreBundle\Application\FrontController;

$activeProject = null;
if (isset($_SERVER['ACTIVE_PROJECT'])) {
    $activeProject = $_SERVER['ACTIVE_PROJECT'];
}

if (isset($_ENV['ACTIVE_PROJECT'])) {
    $activeProject = $_ENV['ACTIVE_PROJECT'];
}

if (null === $activeProject) {
    $activeProject = 'core';
}

require __DIR__.'/../vendor/autoload.php';

FrontController::console($activeProject);
