2017 © Pedro PelĂĄez
 

symfony-bundle mainbundle

Main Bundle for eDemy Framework

image

edemy/mainbundle

Main Bundle for eDemy Framework

  • Saturday, November 28, 2015
  • by masando
  • Repository
  • 1 Watchers
  • 0 Stars
  • 68 Installations
  • PHP
  • 16 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

eDemyMainBundle

The eDemyMainBundle is the main bundle for the eDemy Framework. It adds base functionality for other bundles., (*1)

Installation

$ composer require edemy/mainbundle:dev-master

app/AppKernel.php, (*2)

new JMS\SerializerBundle\JMSSerializerBundle(),
new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
new FOS\UserBundle\FOSUserBundle(),
new eDemy\MainBundle\eDemyMainBundle(),
Optional
new Stfalcon\Bundle\TinymceBundle\StfalconTinymceBundle(),

app/routing.yml, (*3)

edemy_main:
    resource: .
    type: extra

app/config.yml, (*4)

fos_user:
    db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
    firewall_name: main
    user_class: eDemy\MainBundle\Entity\User

app/security.yml, (*5)

security:
    encoders:
        FOS\UserBundle\Model\UserInterface: sha512

    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    providers:
        fos_userbundle:
            id: fos_user.user_provider.username

    firewalls:
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false

        main:
            pattern:    ^/
            form_login:
                provider: fos_userbundle
                csrf_provider: form.csrf_provider
            logout:       true
            anonymous:    true

License

This bundle is under the GNUv2 license. See the complete license in the bundle:, (*6)

Resources/meta/LICENSE

Documentation

The bulk of the documentation is stored in the Resources/doc/index.md file in this bundle., (*7)

The Versions