2017 © Pedro Peláez
 

library behavior-bundle

Endroid Behavior Bundle

image

endroid/behavior-bundle

Endroid Behavior Bundle

  • Sunday, January 1, 2017
  • by endroid
  • Repository
  • 1 Watchers
  • 0 Stars
  • 466 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

Behavior Bundle

By endroid, (*1)

Latest Stable Version Build Status Total Downloads Monthly Downloads License, (*2)

This bundle provides default behaviors you can apply to your classes via interfaces and traits. Admin extensions, Doctrine filters and event listeners are provided to enforce the behaviors., (*3)

knpbundles.com, (*4)

Requirements

  • Symfony

Installation

Use Composer to install the bundle., (*5)

``` bash $ composer require endroid/behavior-bundle, (*6)


Then enable the bundle via the kernel. ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = [ // ... new Endroid\Bundle\BehaviorBundle\EndroidBehaviorBundle(), ]; }

Configuration

Doctrine filters

By default only published content for the current language should be retrieved from the database. The following configuration enforces this behavior., (*7)

doctrine:
    orm:
        filters:
            publishable:
                class:   Endroid\Bundle\BehaviorBundle\Filter\PublishableFilter
                enabled: false

Of course these filters are optional and you can enable or disable them at any point., (*8)

Admin extensions

Admin extensions for Sonata Admin add functionality to the backend and enable you to publish, sort and traverse items. The following configuration adds this functionality to all admin classes implementing the described interfaces., (*9)

sonata_admin:
    extensions:
        endroid_behavior.admin.extension.publishable:
            implements:
                - Endroid\Bundle\BehaviorBundle\Model\PublishableInterface
        endroid_behavior.admin.extension.sortable:
            implements:
                - Endroid\Bundle\BehaviorBundle\Model\SortableInterface
        endroid_behavior.admin.extension.traversable:
            implements:
                - Endroid\Bundle\BehaviorBundle\Model\TraversableInterface

Versioning

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading., (*10)

License

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code., (*11)

The Versions

01/01 2017

dev-master

9999999-dev https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle symfony behavior endroid

01/01 2017

1.1.0

1.1.0.0 https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle symfony behavior endroid

28/12 2016

1.0.8

1.0.8.0 https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

bundle behavior endroid

23/02 2016

1.0.7

1.0.7.0 https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

bundle behavior endroid

23/02 2016

1.0.6

1.0.6.0 https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

bundle behavior endroid

15/02 2016

1.0.5

1.0.5.0 https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

bundle behavior endroid

18/01 2016

1.0.4

1.0.4.0 https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

bundle behavior endroid

05/01 2016

1.0.3

1.0.3.0 https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

bundle behavior endroid

02/01 2016

1.0.2

1.0.2.0 https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

bundle behavior endroid

12/07 2015

1.0.1

1.0.1.0 https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle behavior endroid

12/07 2015

1.0.0

1.0.0.0 https://github.com/endroid/EndroidBehaviorBundle

Endroid Behavior Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle behavior endroid