public function getLocations()
    {
        static $_cwd = null;
        static $_paths = array(
            'public',
            'web',
        );

        if ( $_cwd === null )
        {
            $_cwd = getcwd();

            foreach ( $_paths as $_path )
            {
                if ( is_dir( $_cwd . '/' . $_path ) )
                {
                    $this->locations['app'] = $_path . '/{$name}/';
                    break;
                }
            }
        }

        return parent::getLocations();
    }