Closed taalayuulu closed 6 years ago
@taalayuulu We solved the problem?
Please read the error message!
The file "/home/kanat/Downloads/MainSource/app/config/config.yml" does not contain valid YAML.
This is not related to any sonata package. Please use stack overflow for general questions.
An error occurred after installing sonata media bundle
`imports:
Put parameters here that don't need to change on each machine where the app is deployed
http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters: locale: ru
framework:
esi: ~
Twig Configuration
twig: debug: "%kernel.debug%" strict_variables: "%kernel.debug%"
Assetic Configuration
assetic: debug: "%kernel.debug%" use_controller: false bundles: [ ]
java: /usr/bin/java
Doctrine Configuration
doctrine: dbal: driver: pdo_mysql host: "%database_host%" port: "%database_port%" dbname: "%database_name%" user: "%database_user%" password: "%database_password%" charset: UTF8 types: json: Sonata\Doctrine\Types\JsonType
if using pdo_sqlite as your database driver:
Swiftmailer Configuration
swiftmailer: transport: "%mailer_transport%" host: "%mailer_host%" username: "%mailer_user%" password: "%mailer_password%" spool: { type: memory }
Admin configuration
sonata_block: default_contexts: [cms] blocks:
enable the SonataAdminBundle block
sonata_admin: title: Фен templates: show: AdminAdminBundle:Admin:Display_Client.html.twig services: sonata.admin.post: class: Admin\AdminBundle\Admin\PostAdmin tags:
sonata user
sonata_user: security_acl: true manager_type: orm
FOS userBundle
fos_user: db_driver: orm firewall_name: main user_class: Application\Sonata\UserBundle\Entity\User
Configuration for media bundle
sonata_media:
if you don't use default namespace configuration
the output after
composer showe -i