williarin / wordpress-interop-bundle
Symfony bundle to integrate williarin/wordpress-interop in the framework
Installs: 7 817
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 3
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.0
- symfony/config: ^6.0 || ^7.0
- symfony/dependency-injection: ^6.0 || ^7.0
- symfony/http-kernel: ^6.0 || ^7.0
- williarin/wordpress-interop: ^1.8.1
Requires (Dev)
- ergebnis/composer-normalize: ^2.23
- kubawerlos/php-cs-fixer-custom-fixers: ^3.7
- rector/rector: ^0.12.13
- roave/security-advisories: dev-latest
- symplify/coding-standard: ^10.0
- symplify/easy-coding-standard: ^10.0
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\ManagerRegistryInterface
to access all your managers and repositories.Williarin\WordpressInterop\EntityManagerInterface
to get the default entity managerWilliarin\WordpressInterop\Persistence\DuplicationServiceInterface
to get the default duplication servicewordpress_interop.entity_manager
as an alternative toWilliarin\WordpressInterop\EntityManagerInterface
License
Copyright (c) 2022, William Arin