Code Monkey home page Code Monkey logo

Comments (2)

lvbeck avatar lvbeck commented on June 6, 2024

I have the same problem, here is my config:

imports:
- { resource: parameters.ini }
- { resource: security.yml }

framework:
#esi: ~
translator: { fallback: %locale% }
secret: %secret%
charset: UTF-8
router: { resource: "%kernel.root_dir%/config/routing.yml" }
form: true
csrf_protection: true
validation: { enable_annotations: true }
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
session:
default_locale: %locale%
auto_start: true

Twig Configuration

twig:
debug: %kernel.debug%
strict_variables: %kernel.debug%

Assetic Configuration

assetic:
debug: %kernel.debug%
use_controller: false
# java: /usr/bin/java
filters:
cssrewrite: ~
# closure:
# jar: %kernel.root_dir%/java/compiler.jar
# yui_css:
# jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar

Doctrine Configuration

doctrine:
dbal:
driver: %database_driver%
host: %database_host%
port: %database_port%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8
types:
json: Sonata\Doctrine\Types\JsonType
orm:
#auto_generate_proxy_classes: %kernel.debug%
#auto_mapping: true
entity_managers:
default:
mappings:
ApplicationSonataUserBundle: ~
SonataUserBundle: ~

Swiftmailer Configuration

swiftmailer:
transport: %mailer_transport%
host: %mailer_host%
username: %mailer_user%
password: %mailer_password%

jms_security_extra:
secure_controllers: true
secure_all_services: false

User Configuration

fos_user:
db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
firewall_name: main
user_class: Application\Sonata\UserBundle\Entity\User
group:
group_class: Application\Sonata\UserBundle\Entity\Group

KNP Menu Configuration

knp_menu:
twig: # use "twig: false" to disable the Twig extension and the TwigRenderer
template: knp_menu.html.twig
templating: false # if true, enables the helper for PHP templates
default_renderer: twig # The renderer to use, list is also available by default

Sonata Cache Configuration

sonata_cache:
caches:
memcache:
prefix: test # prefix to ensure there is no clash between instances
servers:
- {host: 127.0.0.1, port: 11211, weight: 1}

Sonata Block Configuration

sonata_block:
default_contexts: [cms]
blocks:
sonata.admin.block.admin_list:
contexts: [admin]

    #sonata.admin_doctrine_orm.block.audit:
    #    contexts:   [admin]

    sonata.block.service.text:
    sonata.block.service.action:
    sonata.block.service.rss:

    # Some specific blocks from the SonataMediaBundle
    #sonata.media.block.media:
    #sonata.media.block.gallery:
    #sonata.media.block.feature_media:

Sonata Doctrine ORM Admin Configuration

sonata_doctrine_orm_admin:
# default value is null, so doctrine uses the value defined in the configuration
entity_manager: ~

templates:
    form:
        - SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig
    filter:
        - SonataDoctrineORMAdminBundle:Form:filter_admin_fields.html.twig
    types:
        list:
            array:      SonataAdminBundle:CRUD:list_array.html.twig
            boolean:    SonataAdminBundle:CRUD:list_boolean.html.twig
            date:       SonataAdminBundle:CRUD:list_date.html.twig
            time:       SonataAdminBundle:CRUD:list_time.html.twig
            datetime:   SonataAdminBundle:CRUD:list_datetime.html.twig
            text:       SonataAdminBundle:CRUD:base_list_field.html.twig
            trans:      SonataAdminBundle:CRUD:list_trans.html.twig
            string:     SonataAdminBundle:CRUD:base_list_field.html.twig
            smallint:   SonataAdminBundle:CRUD:base_list_field.html.twig
            bigint:     SonataAdminBundle:CRUD:base_list_field.html.twig
            integer:    SonataAdminBundle:CRUD:base_list_field.html.twig
            decimal:    SonataAdminBundle:CRUD:base_list_field.html.twig
            identifier: SonataAdminBundle:CRUD:base_list_field.html.twig

        show:
            array:      SonataAdminBundle:CRUD:show_array.html.twig
            boolean:    SonataAdminBundle:CRUD:show_boolean.html.twig
            date:       SonataAdminBundle:CRUD:show_date.html.twig
            time:       SonataAdminBundle:CRUD:show_time.html.twig
            datetime:   SonataAdminBundle:CRUD:show_datetime.html.twig
            text:       SonataAdminBundle:CRUD:base_show_field.html.twig
            trans:      SonataAdminBundle:CRUD:show_trans.html.twig
            string:     SonataAdminBundle:CRUD:base_show_field.html.twig
            smallint:   SonataAdminBundle:CRUD:base_show_field.html.twig
            bigint:     SonataAdminBundle:CRUD:base_show_field.html.twig
            integer:    SonataAdminBundle:CRUD:base_show_field.html.twig
            decimal:    SonataAdminBundle:CRUD:base_show_field.html.twig

Sonata User Configuration

sonata_user:
security_acl: true

from sonatauserbundle.

core23 avatar core23 commented on June 6, 2024

This issue is very old. Can you please check this against the latest master version?

Feel free to reopen if this error still exists.

from sonatauserbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.