Overview
  • Namespace
  • Class

Namespaces

  • Slim
    • Exception
    • Handlers
      • Strategies
    • Http
    • Interfaces
      • Http

Classes

  • App
  • CallableResolver
  • Collection
  • Container
  • DefaultServicesProvider
  • DeferredCallable
  • Routable
  • Route
  • RouteGroup
  • Router

Traits

  • CallableResolverAwareTrait
  • MiddlewareAwareTrait

Trait CallableResolverAwareTrait

ResolveCallable

This is an internal class that enables resolution of 'class:method' strings into a closure. This class is an implementation detail and is used only inside of the Slim application.

Direct Known Users

Slim\DeferredCallable, Slim\Routable

Indirect Known Users

Slim\Route, Slim\RouteGroup

Namespace: Slim
Located at CallableResolverAwareTrait.php

Methods summary

protected Closure
# resolveCallable( callable|string $callable )

Resolve a string of the format 'class:method' into a closure that the router can dispatch.

Resolve a string of the format 'class:method' into a closure that the router can dispatch.

Parameters

$callable

Returns

Closure

Throws

RuntimeException
If the string cannot be resolved as a callable

Properties summary

Magic properties

public Psr\Container\ContainerInterface $container
API documentation generated by ApiGen