williarin/wordpress-interop-bundle
最新稳定版本:1.3.0
Composer 安装命令:
composer require williarin/wordpress-interop-bundle
包简介
Symfony bundle to integrate williarin/wordpress-interop in the framework
README 文档
README
Introduction
This bundle integrates williarin/wordpress-interop with Symfony.
Installation
composer require williarin/wordpress-interop-bundle
Configuration
# config/packages/doctrine.yaml doctrine: dbal: connections: my_dbal_connection: driver: pdo_mysql url: '%env(resolve:WORDPRESS_DATABASE_URL)%' charset: UTF8
# config/packages/williarin_wordpress_interop.yaml williarin_wordpress_interop: # default_entity_manager: # defaults to the first defined entity manager entity_managers: my_entity_manager: connection: my_dbal_connection # tables_prefix: custom_ # defaults to 'wp_' # another_manager: # connection: my_other_dbal_connection # # tables_prefix: custom_
Autowiring
Williarin\WordpressInterop\ManagerRegistryInterfaceto access all your managers and repositories.Williarin\WordpressInterop\EntityManagerInterfaceto get the default entity managerWilliarin\WordpressInterop\Persistence\DuplicationServiceInterfaceto get the default duplication servicewordpress_interop.entity_manageras an alternative toWilliarin\WordpressInterop\EntityManagerInterface
License
Copyright (c) 2022, William Arin
统计信息
- 总下载量: 10.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-25