<?php

/**
 * Init application
 */

$app = new Mosaic\Cement\Application(
    realpath(__DIR__ . '/../')
);

$app->components(
    Mosaic\Exceptions\Component::whoops(),
    Mosaic\Http\Component::diactoros(),
    Mosaic\Routing\Component::fastRoute()->binders(
        new App\Http\Routes\HomeRoute
    ),
    Mosaic\View\Component::twig($app->getFolderStructure())
);

return $app;

<?php

/**
 * Init application
 */

$app = new Mosaic\Cement\Application(
    realpath(__DIR__ . '/../')
);

$app->components(
    Mosaic\Exceptions\Component::whoops()->formatters(
        new Whoops\Handler\PrettyPageHandler
    ),
    Mosaic\Http\Component::diactoros(),
    Mosaic\Routing\Component::fastRoute()->binders(
        new App\Http\Routes\HomeRoute
    ),
    Mosaic\View\Component::twig($app->getFolderStructure())
);

return $app;

Use pretty page formatter for whoops component
Use pretty page formatter for whoops component
