vim/symfony-api-pack

This package is abandoned and no longer maintained. The author suggests using the vim/symfony-api package instead.

1.0.35 2020-07-07 14:18 UTC

README

Installation

composer require vim/symfony-api-pack

config/bundles.php:

<?php

return [
    // ...
    Vim\SymfonyApiPack\SymfonyApiPackBundle::class => ['all' => true],
];

Configuration Example

Default parameters:

api_pack:
    error_notify_email: '%env(ERROR_NOTIFY_EMAIL)%'

parameters:
    file.upload_dir: '%kernel.project_dir%/var/file'
    app.settings:
        - { type: array, code: test_1, name: test_name_1, value: [15] }
        - { type: string, code: test_2, name: test_name_2, value: 'some value' }
        - { type: chose, code: test_3, name: test_name_3, value: 20, choseList: [15, 20, 30] }
        - { type: boolean, code: test_4, name: test_name_4, value: true }
        - { type: text, code: test_5, name: test_name_5, value: 'some long text' }
    app.nav:
        - { name: article, roles: [ ROLE_ROOT, ROLE_ARTICLE ], actions: [ { name: delete }, { name: create, roles: [ ROLE_ROOT, ROLE_ARTICLE ] } ] }
    mailing.template:
        error_create: 'emails/error_create.html.twig'
        user_create: 'emails/user_create.html.twig'
        password_recovery: 'emails/password_recovery.html.twig'
        password_reset: 'emails/password_reset.html.twig'