webundle/puzzle-admin-contact

Manages contacts

1.0.0 2018-09-16 17:12 UTC

README

=========================

Puzzle bundle for managing admin

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

composer require webundle/puzzle-admin-contact

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
{
    $bundles = array(
    // ...

    new Puzzle\Admin\ContactBundle\PuzzleAdminContactBundle(),
                    );

 // ...
}

 // ...
}

Step 3: Register the Routes

Load the bundle's routing definition in the application (usually in the app/config/routing.yml file):

app/config/routing.yml

puzzle_admin:
        resource: "@PuzzleAdminContactBundle/Resources/config/routing.yml"

Step 4: Configure Dependency Injection

Then, enable management bundle via admin modules interface by adding it to the list of registered bundles in the app/config/config.yml file of your project under:

# Puzzle Client Contact
puzzle_admin_contact:
    title: contact.title
    description: contact.description
    icon: contact.icon
    roles:
        default:
            label: 'ROLE_CONTACT'
            description: contact.role.default

Step 5: Enable module

Then, enable management bundle via admin modules interface by adding it to the list of registered bundles in the app/config/config.yml file of your project under:

# Client Admin
puzzle_admin:
    ...
    modules_availables: '...,contact'