tuna-cms / tuna-bundle
Tuna CMS 主要包
v1.0.5
2017-09-19 13:25 UTC
Requires
- php: >=5.6
- a2lix/translation-form-bundle: ^1.0
- doctrine/doctrine-bundle: ~1.4
- doctrine/doctrine-fixtures-bundle: ^2.3
- doctrine/doctrine-migrations-bundle: ^1.0
- doctrine/orm: ~2.2,>=2.2.3,<2.5
- egeloen/ckeditor-bundle: ^6.0
- friendsofsymfony/jsrouting-bundle: ^1.6
- gedmo/doctrine-extensions: ^2.4
- incenteev/composer-parameter-handler: ~2.0
- jms/di-extra-bundle: ^1.5
- jms/i18n-routing-bundle: ^2.0
- jms/translation-bundle: ^1.3.1
- knplabs/knp-menu: ^2.1
- knplabs/knp-menu-bundle: ^2.0
- knplabs/knp-paginator-bundle: 2.5.3
- leafo/scssphp: ^0.6.3
- lexik/translation-bundle: ^4.0.0
- liip/imagine-bundle: ^1.3
- sensio/distribution-bundle: ~3.0
- sensio/framework-extra-bundle: ~3.0,>=3.0.2
- symfony/assetic-bundle: ~2.8
- symfony/monolog-bundle: ~2.4
- symfony/swiftmailer-bundle: ~2.3
- symfony/symfony: ^2.8.0
- willdurand/js-translation-bundle: ^2.5
Requires (Dev)
- phpspec/phpspec: ^3.2.3
- phpunit/phpunit: ^5.7.11
- sensio/generator-bundle: ^3.0
- symfony/phpunit-bridge: ^3.0
This package is not auto-updated.
Last update: 2020-08-07 22:00:14 UTC
README
Tuna CMS TunaBundle
安装
-
需求模块
composer require "tuna-cms/tuna-bundle": "^1.0.0"
-
将以下行添加到
AppKernel::registerBundles()
TunaCMS\AdminBundle\BundleDependencyRegisterer::register($bundles);
-
导入 Tuna 配置
imports: - { resource: '@TunaCMSAdminBundle/Resources/config/config.yml' }
-
迁移数据库
doctrine:migrations:diff && doctrine:migrations:migrate
-
添加路由
# app/config/routing.yml tuna_cms_tuna_admin: resource: "@TunaCMSAdminBundle/Resources/config/routing.yml"
-
更改编辑器配置(将在下一版本中更改)
tuna_cms_admin: components: editor: wysiwyg_style_dir: '%kernel.root_dir%/../vendor/tuna-cms/tuna-bundle/Resources/public/sass/editor'
-
覆盖配置
Tuna 注入了一些基本配置,但您可以自由覆盖它们(请注意,这样可能会破坏一些功能)。有关最新配置默认值,请查看 Resources/config/config.yml。此文件还包括 Resources/config/security.yml,因此请确保清空您的 security.yml 文件或覆盖其中的一部分。
您还可以通过更改包配置来微调 Tuna。以下是完整的默认选项配置
tuna_cms_admin:
paths:
admin_logo: bundles/tunacmsadmin/images/logo.png
editor_config: bundles/tunacmseditor/js/editorConfig.js
host: null
menu_builder: TunaCMS\AdminBundle\Menu\Builder
locale: en
locales:
- en
- pl
components:
pages:
enabled: true
create: true
delete: true
editor:
wysiwyg_style_dir: %kernel.root_dir%/../vendor/tuna-cms/tuna-bundle/Resources/public/sass/editor
menu:
enabled: true
default_template: 'TunaCMSMenuBundle:Menu:render_menu.html.twig'
security:
enabled: true
use_access_control: true
news:
enabled: true
events:
enabled: false
translations:
enabled: true
categories:
enabled: false
文档
您可以在 这里 找到文档
测试
$ SYMFONY_DEPRECATIONS_HELPER=weak ./run-tests.sh