<?php

namespace Forms;

use Events\EventDispatcher;
use Forms\Form;
use Validation\Validator;

class FormFactory 
{
    public static function make(Form $formClass)
    {
        return new $formClass(
            new Validator,
            new EventDispatcher
        );
    }
}
<?php

namespace Forms;

use Events\EventDispatcher;
use Forms\Form;
use Validation\Validator;

class FormFactory 
{
    public static function make($formClass)
    {
        return new $formClass(
            new Validator,
            new EventDispatcher
        );
    }
}
FIX form factory method signatur
FIX form factory method signatur
