Exceptions
Exception
ArgumentCountError
in
src/Form/LoginFormType.php
(line 17)
use Symfony\Contracts\Translation\TranslatorInterface;class LoginFormType extends AbstractType{public function __construct(private readonly TranslatorInterface $trans,) {}public function buildForm(FormBuilderInterface $builder, array $options): void{
in
var/cache/dev/ContainerJDxM9Sl/getLoginFormTypeService.php
->
__construct
(line 25)
{include_once \dirname(__DIR__, 4).'/vendor/symfony/form/FormTypeInterface.php';include_once \dirname(__DIR__, 4).'/vendor/symfony/form/AbstractType.php';include_once \dirname(__DIR__, 4).'/src/Form/LoginFormType.php';return $container->privates['App\\Form\\LoginFormType'] = new \App\Form\LoginFormType();}}
in
var/cache/dev/ContainerJDxM9Sl/App_KernelDevDebugContainer.php
::
do
(line 567)
$file .= '.php';}$service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file;return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service;}protected function createProxy($class, \Closure $factory){class_exists($class, false) || require __DIR__.'/'.$class.'.php';
in
vendor/symfony/dependency-injection/Container.php
->
load
(line 404)
}if (null === $method) {return false !== $registry ? $this->{$registry}[$id] ?? null : null;}if (false !== $registry) {return $this->{$registry}[$id] ??= $load ? $this->load($method) : $this->{$method}($this);}if (!$load) {return $this->{$method}($this);}
in
vendor/symfony/dependency-injection/Argument/ServiceLocator.php
->
getService
(line 36)
public function get(string $id): mixed{return match (\count($this->serviceMap[$id] ?? [])) {0 => parent::get($id),1 => $this->serviceMap[$id][0],default => ($this->factory)(...$this->serviceMap[$id]),};}public function getProvidedServices(): array{
in
vendor/symfony/form/Extension/DependencyInjection/DependencyInjectionExtension.php
->
get
(line 43)
{if (!$this->typeContainer->has($name)) {throw new InvalidArgumentException(\sprintf('The field type "%s" is not registered in the service container.', $name));}return $this->typeContainer->get($name);}public function hasType(string $name): bool{return $this->typeContainer->has($name);
in
vendor/symfony/form/FormRegistry.php
->
getType
(line 64)
if (!isset($this->types[$name])) {$type = null;foreach ($this->extensions as $extension) {if ($extension->hasType($name)) {$type = $extension->getType($name);break;}}if (!$type) {
in
vendor/symfony/form/FormFactory.php
->
getType
(line 53)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowBuilderInterface : FormBuilderInterface)*/public function createBuilder(string $type = FormType::class, mixed $data = null, array $options = []): FormBuilderInterface{return $this->createNamedBuilder($this->registry->getType($type)->getBlockPrefix(), $type, $data, $options);}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowBuilderInterface : FormBuilderInterface)*/
in
vendor/symfony/form/FormFactory.php
->
createBuilder
(line 32)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface{return $this->createBuilder($type, $data, $options)->getForm();}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
create
(line 356)
** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface{return $this->container->get('form.factory')->create($type, $data, $options);}/*** Creates and returns a form builder instance.*/
$error = $authenticationUtils->getLastAuthenticationError();// last username entered by the user$lastUsername = $authenticationUtils->getLastUsername();$form = $this->createForm(LoginFormType::class, ['_username' => $lastUsername,], ['action' => $this->generateUrl('app_login'),'method' => 'POST',]);
in
vendor/symfony/http-kernel/HttpKernel.php
->
login
(line 188)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $controllerMetadata);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 79)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type, $controllerMetadata);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 143)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 34)
) {}public function run(): int{$response = $this->kernel->handle($this->request);$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {fastcgi_finish_request();
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/home/ubuntu/work/mossleigh/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return static function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 06:26:15 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "9e097b"
},
"request_uri": "https://dev.darksoft-inc.wtf/_profiler/9e097b?panel=exception&type=request",
"method": "GET"
}
|
Stack Trace
|
ArgumentCountError
|
|---|
ArgumentCountError:
Too few arguments to function App\Form\LoginFormType::__construct(), 0 passed in /home/ubuntu/work/mossleigh/var/cache/dev/ContainerJDxM9Sl/getLoginFormTypeService.php on line 25 and exactly 1 expected
at src/Form/LoginFormType.php:17
at App\Form\LoginFormType->__construct()
(var/cache/dev/ContainerJDxM9Sl/getLoginFormTypeService.php:25)
at ContainerJDxM9Sl\getLoginFormTypeService::do()
(var/cache/dev/ContainerJDxM9Sl/App_KernelDevDebugContainer.php:567)
at ContainerJDxM9Sl\App_KernelDevDebugContainer->load()
(vendor/symfony/dependency-injection/Container.php:404)
at Symfony\Component\DependencyInjection\Container->getService()
(vendor/symfony/dependency-injection/Argument/ServiceLocator.php:36)
at Symfony\Component\DependencyInjection\Argument\ServiceLocator->get()
(vendor/symfony/form/Extension/DependencyInjection/DependencyInjectionExtension.php:43)
at Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension->getType()
(vendor/symfony/form/FormRegistry.php:64)
at Symfony\Component\Form\FormRegistry->getType()
(vendor/symfony/form/FormFactory.php:53)
at Symfony\Component\Form\FormFactory->createBuilder()
(vendor/symfony/form/FormFactory.php:32)
at Symfony\Component\Form\FormFactory->create()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:356)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createForm()
(src/Controller/SecurityController.php:39)
at App\Controller\SecurityController->login()
(vendor/symfony/http-kernel/HttpKernel.php:188)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:79)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:143)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:34)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/home/ubuntu/work/mossleigh/vendor/autoload_runtime.php')
(public/index.php:5)
|