This commit is contained in:
2024-07-03 14:41:15 +03:00
commit ec69208f05
1892 changed files with 181728 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?php namespace Phroute\Phroute;
class HandlerResolver implements HandlerResolverInterface {
/**
* Create an instance of the given handler.
*
* @param $handler
* @return array
*/
public function resolve ($handler)
{
if(is_array($handler) && is_string($handler[0]))
{
$handler[0] = new $handler[0];
}
return $handler;
}
}