Skip to content

Commit 78234d4

Browse files
committed
Remove deprecated method createInstance().
1 parent 677ed92 commit 78234d4

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

src/ApiManager.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -258,28 +258,6 @@ private function route(string $route, array $params): array
258258
}
259259

260260

261-
/**
262-
* Create new API endpoint instance with all injected dependencies.
263-
*
264-
* @param string $class
265-
* @param mixed[] $params
266-
* @return Endpoint
267-
*/
268-
private function createInstance(string $class, array $params): Endpoint
269-
{
270-
/** @var Endpoint $endpoint */
271-
$endpoint = $this->container->getByType($class);
272-
273-
foreach (InjectExtension::getInjectProperties(\get_class($endpoint)) as $property => $service) {
274-
$endpoint->{$property} = $this->container->getByType($service);
275-
}
276-
277-
$endpoint->setData($params);
278-
279-
return $endpoint;
280-
}
281-
282-
283261
/**
284262
* Call all endpoint methods in regular order and return response state.
285263
*

0 commit comments

Comments
 (0)