<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
michael-rubel / laravel-enhanced-container example snippets
call(ServiceInterface::class, context: static::class);
// The `call` method automatically resolves the implementation from the interface you passed.
// If you pass the context, the proxy tries to resolve contextual binding instead of global binding first.
class Service
{
public function yourMethod(int $count): int
{
return $count;
}
}