*
* @var string[]
*/
- private $methods = ['GET', 'POST', 'PUT', 'DELETE'];
+ private $methods = array('GET', 'POST', 'PUT', 'DELETE');
/**
* Target for this route, can be anything.
* Custom parameter filters for this route
* @var array
*/
- private $filters = [];
+ private $filters = array();
/**
* Array containing parameters passed through request URL
* @var array
*/
- private $parameters = [];
+ private $parameters = array();
/**
* @var array
{
$this->url = $resource;
$this->config = $config;
- $this->methods = $config['methods'] ?: [];
+ $this->methods = $config['methods'] ?: array();
$this->target = $config['target'] ?: null;
}
public function getRegex()
{
- return preg_replace_callback("/:(\w+)/", [&$this, 'substituteFilter'], $this->url);
+ return preg_replace_callback("/:(\w+)/", array(&$this, 'substituteFilter'), $this->url);
}
private function substituteFilter($matches)