MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / app

Function app

examples/demo.php:4966–4973  ·  view source on GitHub ↗

* @template TClass * @param string|null $abstract * @return ($abstract is class-string ? TClass : Container) */

(?string $abstract = null)

Source from the content-addressed store, hash-verified

4964 * @return ($abstract is class-string<TClass> ? TClass : Container)
4965 */
4966function app(?string $abstract = null): mixed
4967{
4968 static $container = null;
4969 if ($container === null) {
4970 $container = new Container();
4971 }
4972 return $abstract !== null ? $container->make($abstract) : $container;
4973}
4974
4975function createUser(string $name, string $email): User
4976{

Callers 2

demoMethod · 0.85
runDemoAssertionsFunction · 0.85

Calls 1

makeMethod · 0.45

Tested by

no test coverage detected