<?php
session_start();
use WebApp\Client\Client as Client;
use WebApp\Admin\Admin as Admin;
use WebApp\Order\Order as Order;
...
$app = System\App::instance();
$app->request = System\Request::instance();
$app->route = System\Route::instance($app->request);
...
$route = $app->route;
$route->any('/admin', function () {
$admin=new Admin();
$admin->run();
unset($admin);
echo 'административная часть';
});
$route->post('/send_faq',function() {
$order=new Order;
$order->sendQUestion();
});
$route->post('/sender', function() {
здесь код отправки
}