Fuel\Core\PhpErrorException [ Runtime Deprecated code usage ]:
Use of "static" in callables is deprecated
143144<?php $filters = is_array($filters) ? $filters : array($filters);
145<?php
146<?php foreach ($filters as $filter)
147<?php {
148<?php // is this filter a callable local function?
149<?php if (is_string($filter) and is_callable('static::'.$filter))
150<?php {
151<?php $var = static::$filter($var);
152<?php }
153<?php
<?php // is this filter a callable function?
9899<?php include COREPATH.'classes/errorhandler.php';
100<?php class_alias('\Fuel\Core\Errorhandler', 'Errorhandler');
101<?php class_alias('\Fuel\Core\PhpErrorException', 'PhpErrorException');
102<?php }
103<?php
104<?php return \Errorhandler::error_handler($severity, $message, $filepath, $line);
105<?php });
106<?php
107<?php function setup_autoloader()
108<?php {
<?php \Autoloader::add_namespace('Fuel\\Core', COREPATH.'classes/');
143144<?php $filters = is_array($filters) ? $filters : array($filters);
145<?php
146<?php foreach ($filters as $filter)
147<?php {
148<?php // is this filter a callable local function?
149<?php if (is_string($filter) and is_callable('static::'.$filter))
150<?php {
151<?php $var = static::$filter($var);
152<?php }
153<?php
<?php // is this filter a callable function?
9596<?php $filters = \Config::get('security.uri_filter', array());
97<?php $filters = is_array($filters) ? $filters : array($filters);
98<?php
99<?php $strict and $uri = str_replace(array('//', '../'), '/', $uri);
100<?php
101<?php return static::clean($uri, $filters);
102<?php }
103<?php
104<?php /**
105<?php * Cleans the global $_GET, $_POST and $_COOKIE arrays
<?php */
215216<?php }
217<?php }
218<?php }
219<?php
220<?php // Do some final clean up of the uri
221<?php static::$detected_uri = \Security::clean_uri($uri, true);
222<?php
223<?php return static::$detected_uri;
224<?php }
225<?php
<?php /**
319320<?php }
321<?php
322<?php // if the route is a closure, an object will be passed here
323<?php is_object($uri) and $uri = null;
324<?php
325<?php $this->uri = trim($uri ?: \Input::uri(), '/');
326<?php
327<?php if (empty($this->uri))
328<?php {
329<?php $this->segments = array();
<?php }
262263<?php * @param string $method request method
264<?php * @throws \FuelException
265<?php */
266<?php public function __construct($uri, $route = true, $method = null)
267<?php {
268<?php $this->uri = new \Uri($uri);
269<?php $this->method = $method ?: \Input::method();
270<?php
271<?php logger(\Fuel::L_INFO, 'Creating a new '.(static::$main==null ? 'main' : 'HMVC').' Request with URI = "'.$this->uri->get().'"', __METHOD__);
272<?php
<?php // check if a module was requested
6465<?php {
66<?php $class = \Inflector::words_to_upper('Request_'.$options['driver']);
67<?php return $class::forge($uri, $options, $method);
68<?php }
69<?php
70<?php $request = new static($uri, isset($options['route']) ? $options['route'] : true, $method);
71<?php if (static::$active)
72<?php {
73<?php $request->parent = static::$active;
74<?php static::$active->children[] = $request;
<?php }
6970<?php $response = Response::forge($response);
71<?php }
72<?php }
73<?php elseif ($e === false)
74<?php {
75<?php $response = Request::forge()->execute()->response();
76<?php }
77<?php elseif ($route)
78<?php {
79<?php $response = Request::forge($route, false)->execute(array($e))->response();
<?php }
9091<?php {
92<?php // Boot the app...
93<?php require APPPATH.'bootstrap.php';
94<?php
95<?php // ... and execute the main request
96<?php $response = $routerequest();
97<?php }
98<?php catch (HttpBadRequestException $e)
99<?php {
100<?php $response = $routerequest('_400_', $e);
<?php }