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

Custom options in a FormTypeExtension not parsed when getExtendedClass is class ref #1098

Closed
cedricziel opened this issue Dec 7, 2017 · 1 comment
Labels

Comments

@cedricziel
Copy link
Contributor

class ApplicationFlowFormTypeExtension extends AbstractTypeExtension
{
    /**
     * @param OptionsResolver $resolver
     */
    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setDefined(['page', '..']);
    }

    /**
     * Returns the name of the type being extended.
     *
     * @return string The name of the type being extended
     */
    public function getExtendedType()
    {
        return FormType::class;
    }
}

I can only guess, that the string value of the return type has a leading slash or so.

Haehnchen added a commit that referenced this issue Dec 7, 2017
@Haehnchen Haehnchen added the fixed label Dec 7, 2017
Haehnchen added a commit that referenced this issue Dec 7, 2017
refactoring form component to support more usages like extension navigation and self inheritance #1098 #695
@Haehnchen
Copy link
Owner

done

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

2 participants