<?php

namespace Lily\Example\Application;

use Lily\Application\RoutedApplication;

use Lily\Example\Application\AdminApplication;

class FrontEndApplication extends RoutedApplication
{
    protected function routes()
    {
        return array(
            array('GET', '/', '<a href="/admin">admin'),
            array(NULL, '/admin(/**)', new AdminApplication),
        );
    }
}

<?php

namespace Lily\Example\Application;

use Lily\Application\RoutedApplication;

use Lily\Example\Application\AdminApplication;

class FrontEndApplication extends RoutedApplication
{
    protected function routes()
    {
        return array(
            array('GET', '/', '<a href="/admin">admin'),
            $this->adminApplicationRoute(),
        );
    }

    // Send all request methods and any URL beginning with `/admin` to Admin
    private function adminApplicationRoute()
    {
        return array(NULL, '/admin(/**)', new AdminApplication);
    }
}

Move admin application route to it's own documented method
Move admin application route to it's own documented method