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

Delegator for FormElementManager for creating forms, fieldsets and elements from config

License

Notifications You must be signed in to change notification settings

tobias-trozowski/zend-expressive-form-delegator

Repository files navigation

zend-expressive-form-delegator

License Latest Stable Version PHP 7 ready Build Status Coverage Status Total Downloads

Delegator for Zend FormElementManager

This package provides a delegator for the FormElementManager which configures the PluginManager to use the service configuration from form_elements from your config.

The package is intended to be used with Zend Expressive Skeleton or any other Zend Expressive application.

Installation

The easiest way to install this package is through composer:

$ composer require tobias/zend-expressive-form-delegator

Configuration

In the general case where you are only using a single connection, it's enough to define the delegator factory for the FormElementManager:

return [
    'dependencies' => [
        'delegators' => [
            'FormElementManager' => [
                \Tobias\Expressive\Form\FormElementManagerDelegatorFactory::class,
            ],
        ],
    ],
];

Using Expressive Config Manager

If you're using the Expressive Config Manager you can easily add the ConfigProvider class.

$configManager = new ConfigManager(
    [
        \Tobias\Expressive\Form\ConfigProvider::class,
    ]
);

About

Delegator for FormElementManager for creating forms, fieldsets and elements from config

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages