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

Advanced Content Validation - Forthcoming Topics #4

Open
weierophinney opened this issue Dec 31, 2019 · 1 comment
Open

Advanced Content Validation - Forthcoming Topics #4

weierophinney opened this issue Dec 31, 2019 · 1 comment

Comments

@weierophinney
Copy link
Contributor

The documentation says something about very interesting topics like

  • Registering custom input filters with zf-content-validation.
  • Registering custom filters and validators.
  • Providing metadata for custom filters and validators so that they will display in the admin UI.

Is there any resource or entry point to get a glue how to manage custom input filters? Anyone who can help or has any experience?


Originally posted by @nepda at zfcampus/apigility-documentation#79

@weierophinney
Copy link
Contributor Author

Registering custom input filters seems easy, but not in this documentation. You have to register the filters to the FilterPluginManager.

<?php
return array(
    'filters' => array(
        'invokables' => array(
            'YourApiModule\\V1\\Filter\\Myfilter' => 'YourApiModule\\V1\\Filter\\Myfilter',
        ),
    ),
);

Seems to solve this.
This OrderApi\\V1\Filter\Testitest is maybe not the correct place for such a file/class!?

Source

Other topics still open.


Originally posted by @nepda at zfcampus/apigility-documentation#79 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant