for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Base class for routing
*
* @file RouteBase.php
* PHP version 8.0+
* @author Yancharuk Alexander <alex at itvault dot info>
* @copyright © 2012-2021 Alexander Yancharuk
* @date 2015-05-24 14:01
* @license The BSD 3-Clause License
* <https://tldrlegal.com/license/bsd-3-clause-license-(revised)>
*/
namespace Veles\Routing;
* Class RouteBase
class RouteBase
{
/** @var AbstractRoutesConfig */
protected $config_handler;
/** @var string */
protected $ex404 = '\Veles\Routing\Exceptions\NotFoundException';
* @return AbstractRoutesConfig
public function getConfigHandler()
return $this->config_handler;
}
* @param AbstractRoutesConfig $handler
* @return static
public function setConfigHandler(AbstractRoutesConfig $handler)
$this->config_handler = $handler;
return $this;
* Set custom 404 exception class name
* @param string $ex404 Not Found exception class name
public function setNotFoundException($ex404)
$this->ex404 = $ex404;