Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/lookup-server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'server/vendor/slim/slim/Slim/DeferredCallable.php')
-rw-r--r--server/vendor/slim/slim/Slim/DeferredCallable.php45
1 files changed, 0 insertions, 45 deletions
diff --git a/server/vendor/slim/slim/Slim/DeferredCallable.php b/server/vendor/slim/slim/Slim/DeferredCallable.php
deleted file mode 100644
index 22887c0..0000000
--- a/server/vendor/slim/slim/Slim/DeferredCallable.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-/**
- * Slim Framework (https://slimframework.com)
- *
- * @link https://github.com/slimphp/Slim
- * @copyright Copyright (c) 2011-2017 Josh Lockhart
- * @license https://github.com/slimphp/Slim/blob/3.x/LICENSE.md (MIT License)
- */
-
-namespace Slim;
-
-use Closure;
-use Psr\Container\ContainerInterface;
-
-class DeferredCallable
-{
- use CallableResolverAwareTrait;
-
- private $callable;
- /** @var ContainerInterface */
- private $container;
-
- /**
- * DeferredMiddleware constructor.
- * @param callable|string $callable
- * @param ContainerInterface $container
- */
- public function __construct($callable, ContainerInterface $container = null)
- {
- $this->callable = $callable;
- $this->container = $container;
- }
-
- public function __invoke()
- {
- $callable = $this->resolveCallable($this->callable);
- if ($callable instanceof Closure) {
- $callable = $callable->bindTo($this->container);
- }
-
- $args = func_get_args();
-
- return call_user_func_array($callable, $args);
- }
-}