2017 © Pedro Peláez
 

symfony-bundle easy-sonata-admin

Simplified Configuration system for Sonata Admin.

image

caxy/easy-sonata-admin

Simplified Configuration system for Sonata Admin.

  • Tuesday, February 28, 2017
  • by caxy
  • Repository
  • 5 Watchers
  • 0 Stars
  • 57 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

easy-sonata-admin

Getting Started

1) Add EasySonataAdminBundle to your project, (*1)

composer require caxy/easy-sonata-admin

2) Enable the bundle, (*2)

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

            //Load before SonataAdminBundle!
            new Caxy\EasySonataAdminBundle\EasySonataAdminBundle(),

            new Sonata\AdminBundle\SonataAdminBundle(),
        );
    }
}

3) Configure your admin. Example for FOS User Entity below:, (*3)

// app/config/config.yml

easy_sonata_admin:
    entities:
        User:
            class: AppBundle\Entity\User
            batch_actions:
                - '-delete'
            list:
                fields:
                    - id
                    - username
                    - email
                    - enabled
                actions: [show: {}, 'edit', 'delete']
            edit:
                fields:
                    - { property: id, type_options: { } }
                    - { property: username, type_options: { } }
                    - { property: email, type_options: { } }
                    - { property: enabled, type_options: { } }
                    - { property: 'plain_password', type: 'text', type_options: { required: true } }
                actions: ['-delete']
            filter:
                fields:
                    - username
                    - email
                    - enabled
                    - roles
            show:
                fields:
                    - username
                    - email
                    - enabled
                    - { property: 'last_login', type: 'datetime' }
                    - roles
                actions: ['-delete']

The Versions

28/02 2017

dev-develop

dev-develop

Simplified Configuration system for Sonata Admin.

  Sources   Download

MIT

The Requires

 

by David Wnek

configuration admin sonata

24/10 2016

dev-updates

dev-updates

Simplified Configuration system for Sonata Admin.

  Sources   Download

MIT

The Requires

 

by David Wnek

configuration admin sonata

12/05 2016

dev-master

9999999-dev

Simplified Configuration system for Sonata Admin.

  Sources   Download

MIT

The Requires

 

by David Wnek

configuration admin sonata

12/05 2016

1.0

1.0.0.0

Simplified Configuration system for Sonata Admin.

  Sources   Download

MIT

The Requires

 

by David Wnek

sonata admin configuration