Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony 4.2: Support improved form type extensions #1246

Closed
Haehnchen opened this issue Oct 30, 2018 · 0 comments
Closed

Symfony 4.2: Support improved form type extensions #1246

Haehnchen opened this issue Oct 30, 2018 · 0 comments
Labels

Comments

@Haehnchen
Copy link
Owner

Dont not lose support for form extension following form extension must be added. First one already included by we need also the iterable+static behavior

    public function getExtendedType()
    {
        return FileType::class;
    }
class ImageTypeExtension extends AbstractTypeExtension
{
    // ...

    public static function getExtendedTypes(): iterable
    {
        return [FileType::class];
    }
}
    public static function getExtendedTypes(): iterable
    {
        yield DateTimeType::class;
        yield DateType::class;
        yield TimeType::class;
    }

symfony/symfony#24530
https://symfony.com/blog/new-in-symfony-4-2-improved-form-type-extensions

@Haehnchen Haehnchen added the fixed label Nov 1, 2018
Haehnchen added a commit that referenced this issue Nov 1, 2018
…xtensions-1246

Symfony 4.2: Support improved form type extensions #1246
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant