33 lines
719 B
PHP
33 lines
719 B
PHP
<?php
|
|
|
|
/**
|
|
* Part of the Joomla Framework Application Package
|
|
*
|
|
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
|
|
* @license GNU General Public License version 2 or later; see LICENSE
|
|
*/
|
|
|
|
namespace Joomla\Application\Controller;
|
|
|
|
use Joomla\Router\ResolvedRoute;
|
|
|
|
/**
|
|
* Interface defining a controller resolver.
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
interface ControllerResolverInterface
|
|
{
|
|
/**
|
|
* Resolve the controller for a route
|
|
*
|
|
* @param ResolvedRoute $route The route to resolve the controller for
|
|
*
|
|
* @return callable
|
|
*
|
|
* @since 2.0.0
|
|
* @throws \InvalidArgumentException
|
|
*/
|
|
public function resolve(ResolvedRoute $route): callable;
|
|
}
|