annotate / backend
dev-master
2017-10-31 20:33 UTC
Requires
- php: >=5.4
- annotate/collections: @dev
- annotate/framework: @dev
- annotate/modules: @dev
- kdyby/events: ^3.1
Requires (Dev)
- annotate/diagnostics: @dev
- annotate/templating: @dev
This package is not auto-updated.
Last update: 2024-09-28 16:03:38 UTC
README
此包提供强大的管理功能。
安装
注意:当annotate/sandbox已安装时,此功能可用
运行
composer require annotate/backend:@dev
使用 Annotate\Modules\Application\ModularPresenter
扩展您的演示者。
通过将 @Annotate\Backend\Routing\BackendRouteProvider
添加到 app/config/app.neon
并在 DefaultRouteProviderService
之后注册模块路由提供者。
通过将它们作为服务添加到 app/config/services.neon
文件中注册验证器和授权器。
-
class: App\Services\DummyAuthorizator
tags: [kdyby.subscriber]
-
class: App\Services\DummyAuthenticator
tags: [security.authenticator]
注意:您可以使用任何验证器和授权器。当使用自定义验证器时,请在 vendor/annotate/security/src/Components/LoginForm.php
中设置正确的验证器键(将很快修复)。当使用 DummyAuthenticator 时,请使用 admin
作为登录名和密码。
##在生产环境中不要使用 DummyAuthenticator##
提示!
为了更好的体验,请安装包 annotate/themes
和 annotate/packages
卸载
只需从 composer.json 中删除包含 annotate/backend
的行,然后运行 composer update
撤销安装过程中所做的更改。