<?php
/**
 * Public entry point for application
 */
require_once('../src/app.php');

<?php
/**
 * Public entry point for application
 */
require_once(__DIR__ . '/../src/app.php');


Use fully qualified path to app.php
Use fully qualified path to app.php

As we don't know where the current working directory is, use a fully
qualified path to app.php. This allows use of the PHP built in web
server if it's run from the root directory like this:

php -S 0.0.0.0:8888 -t public public/index.php
