/home
/studyabroad
/domains
/studyabroad.ge
/vendor
/symfony
/routing
/Matcher
/UrlMatcher.php
*/
public function getContext()
{
return $this->context;
}
/**
* {@inheritdoc}
*/
public function match($pathinfo)
{
$this->allow = array();
if ($ret = $this->matchCollection(rawurldecode($pathinfo), $this->routes)) {
return $ret;
}
throw 0 < count($this->allow)
? new MethodNotAllowedException(array_unique($this->allow))
: new ResourceNotFoundException(sprintf('No routes found for "%s".', $pathinfo));
}
/**
* {@inheritdoc}
*/
public function matchRequest(Request $request)
{
$this->request = $request;
$ret = $this->match($request->getPathInfo());
$this->request = null;
return $ret;
}
public function addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider)
{
$this->expressionLanguageProviders[] = $provider;
}
/home
/studyabroad
/domains
/studyabroad.ge
/framework
/Http
/Kernel.php
{
protected $routes;
protected $dispatcher;
public function __construct(EventDispatcher $dispatcher)
{
MySession::start();
$this->routes = Routes::all();
$this->dispatcher = $dispatcher;
}
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$context = new RequestContext();
$context->fromRequest($request);
$path = $request->getPathInfo();
$matcher = new UrlMatcher($this->routes, $context);
// try {
extract($matcher->match($path), EXTR_SKIP);
ob_start();
$request->attributes->add($matcher->match($path));
$arguments=array($request,$_route);
if(isset($param)){$arguments=array($request,$_route,$param);}
$b_continue=true;
if($request->isMethod('POST')){$before['Cms\Before\Csrf']='Csrf';}
if(isset($before)){
foreach($before as $mid_key=>$mid_item){
$classname_mid=$mid_key;
$obj_mid = new $classname_mid();
$res =$obj_mid->handle($request,$mid_item);
if($res===true){
}else{
$response=$res;
$b_continue=false;
break;
}
}
}
if($b_continue){
/home
/studyabroad
/domains
/studyabroad.ge
/public_html
/index.php
<?php
require '..'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php';
$er_1=new \Framework\Error\Error();
$er_1->fire();
use Symfony\Component\EventDispatcher\EventDispatcher;
$request = Symfony\Component\HttpFoundation\Request::createFromGlobals();
$dispatcher = new EventDispatcher();
$framework = new Framework\Http\Kernel($dispatcher);
$response = $framework->handle($request);
$response->send();
exit();