Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 1 addition & 25 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,4 @@
* @license http://opensource.org/licenses/MIT MIT License
*/

/**
* Now MINI work with namespaces + composer's autoloader (PSR-4)
*
* @author Joao Vitor Dias <joaodias@noctus.org>
*
* For more info about namespaces plase @see http://php.net/manual/en/language.namespaces.importing.php
*/

// set a constant that holds the project's folder path, like "/var/www/".
// DIRECTORY_SEPARATOR adds a slash to the end of the path
define('ROOT', dirname(__DIR__) . DIRECTORY_SEPARATOR);
// set a constant that holds the project's "application" folder, like "/var/www/application".
define('APP', ROOT . 'application' . DIRECTORY_SEPARATOR);

// This is the auto-loader for Composer-dependencies (to load tools into your project).
require ROOT . 'vendor/autoload.php';

// load application config (error reporting etc.)
require APP . 'config/config.php';

// load application class
use Mini\Core\Application;

// start the application
$app = new Application();
echo "SOM TU";