asasi / sf-core-bundle
sf self core
v1.0.0
2019-09-25 07:45 UTC
Requires
- php: >=7.2
- ext-json: *
- asasi/component_encrypt: 1.0.*
- asasi/component_ram: 1.0.*
- symfony/orm-pack: ^1.0
- symfony/serializer-pack: ^1.0
- symfony/translation: 4.3.*
This package is auto-updated.
Last update: 2024-03-25 18:10:25 UTC
README
- 可用于 h5网页 基类: BaseH5Controller
- 可用于 需要登录的api 基类: BaseNeedLoginController
- 可用于 api 基类: BaseSymfonyApiController
必须实现的接口 并注册为Service
- clients对象 ClientsInterface
- 获取clients对象 GetClientsInterface
- 用户账户对象 UserAccountInterface
- 用户账户操作对象 UserAccountServiceInterface
- 用户信息对象 UserProfileInterface
- 用户信息操作对象 UserProfileServiceInterface
- 登录会话操作对象 LoginSessionInterface
且手动绑定Service
YAML例子:
Dbh\SfCoreBundle\Common\LoginSessionInterface: '@App\Service\LoginSessionService'
Dbh\SfCoreBundle\Common\ClientsInterface: '@App\Service\Clients'
Dbh\SfCoreBundle\Common\GetClientsInterface: '@App\Service\ClientsService'