Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Advanced Content Validation - Forthcoming Topics #79

Open
nepda opened this issue Dec 6, 2017 · 2 comments
Open

Advanced Content Validation - Forthcoming Topics #79

nepda opened this issue Dec 6, 2017 · 2 comments

Comments

@nepda
Copy link
Contributor

nepda commented Dec 6, 2017

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?

@nepda
Copy link
Contributor Author

nepda commented Dec 6, 2017

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.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/documentation; a new issue has been opened at laminas-api-tools/documentation#4.

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

No branches or pull requests

2 participants