Parse error: syntax error, unexpected 'namespace' (T_NAMESPACE) in /home/ankaracom/public_html/App/Config/Routes.php on line 20
Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_PARSE)
syntax error, unexpected 'namespace' (T_NAMESPACE) Whoops\Exception\ErrorException thrown with message "syntax error, unexpected 'namespace' (T_NAMESPACE)" Stacktrace: #0 Whoops\Exception\ErrorException in /home/ankaracom/public_html/App/Config/Routes.php:20
Stack frames (1)
0
Whoops
\
Exception
\
ErrorException
/
App
/
Config
/
Routes.php
20
/
home
/
ankaracom
/
public_html
/
App
/
Config
/
Routes.php
<?php
/*************************************************
 * Titan-2 Mini Framework
 * Routes
 *
 * Author     : Turan Karatuğ
 * Web         : http://www.titanphp.com
 * Docs     : http://kilavuz.titanphp.com
 * Github    : http://github.com/tkaratug/titan2
 * License    : MIT
 *
 *************************************************/
use System\Libs\Router\Router as Route;
 
Route::set404(function(){
    header('HTTP/1.1 404 Not Found');
    View::render('errors.404');
});
 
Route::namespace('frontend')->group(function(){
    Route::get('/', 'Home@index');
    Route::get('/home', 'Home@index');
    Route::get('/ofis', 'Home@ofis');
    Route::get('/rezidans', 'Home@rezidans');
    Route::get('/iletisim', 'Home@iletisim');
    Route::get('/lokasyon', 'Home@lokasyon');
    Route::get('/mimari', 'Home@mimari');
    Route::get('/cadde', 'Home@cadde');
    Route::get('/kat-planlari-detay', 'Home@katplanlari');
    Route::get('/galeri', 'Home@galeri');
    Route::get('/formdoldur', 'Home@verigirisi');
    Route::post('/iletisim/gonder', 'Form@FormSend');
    Route::get('/login', 'Home@login');
    Route::post('/cikis', 'Home@cikis');
 
    Route::post('/yonetim/gonder', 'Form@LoginSend');
 
 
 
});

Environment & details:

empty
empty
empty
empty
empty
Key Value
TZ Europe/Istanbul
REDIRECT_UNIQUE_ID XHEOcxmcpTZ4JInfDpxFxgAAAA0
REDIRECT_SCRIPT_URL /
REDIRECT_SCRIPT_URI http://www.1071ankara.com.tr/
REDIRECT_HANDLER application/x-httpd-ea-php55
REDIRECT_STATUS 200
UNIQUE_ID XHEOcxmcpTZ4JInfDpxFxgAAAA0
SCRIPT_URL /
SCRIPT_URI http://www.1071ankara.com.tr/
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_HOST www.1071ankara.com.tr
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT_ENCODING gzip
PATH /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.1071ankara.com.tr
SERVER_ADDR 185.22.185.18
SERVER_PORT 80
REMOTE_ADDR 34.228.143.13
DOCUMENT_ROOT /home/ankaracom/public_html
REQUEST_SCHEME http
CONTEXT_PREFIX /cgi-sys
CONTEXT_DOCUMENT_ROOT /usr/local/cpanel/cgi-sys/
SERVER_ADMIN webmaster@1071ankara.com.tr
SCRIPT_FILENAME /home/ankaracom/public_html/index.php
REMOTE_PORT 55762
REDIRECT_URL /index.php
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /
SCRIPT_NAME /index.php
ORIG_SCRIPT_FILENAME /usr/local/cpanel/cgi-sys/ea-php55
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /home/ankaracom/public_html/index.php
ORIG_SCRIPT_NAME /cgi-sys/ea-php55
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1550913139.05
REQUEST_TIME 1550913139
argv Array ( )
argc 0
empty
0. Whoops\Handler\PrettyPageHandler