ccmbenchmark / ting_bundle
Symfony bundle for ccmbenchmark/ting. Provides an interface to use a lightweight datamapper in symfony.
Installs: 84 139
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 2
Open Issues: 4
Type:symfony-bundle
Requires
- php: >=7.2
- ccmbenchmark/ting: ^3.5
- doctrine/cache: ^1.10
- symfony/config: ^4.4 || ^5.0 || ^6.0
- symfony/dependency-injection: ^4.4 || ^5.0 || ^6.0
- symfony/http-kernel: ^4.4 || ^5.0 || ^6.0
- symfony/stopwatch: ^4.4 || ^5.0 || ^6.0
- symfony/validator: ^4.4 || ^5.0 || ^6.0
Requires (Dev)
- atoum/atoum: ^4.0
- atoum/stubs: ^2.2
- dev-master
- 3.7.0
- 3.6.1
- 3.6.0
- 3.5.0
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.1
- 3.0.0
- 2.2.0
- 2.1.0
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.2.0
- 1.1.x-dev
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-fix/fix-deprecated
- dev-feature/support-sf7
- dev-release/3.6.1
- dev-release/3.6.0
- dev-fix/dynamic-property
- dev-feature/repository-configuration
- dev-feature/cache-clearer
- dev-ci/php8
- dev-fix/symfony5
- dev-feature/implement-LateDataCollectorInterface
- dev-feature/tests-workflows
- dev-fix-srm-library-type
- dev-feature/jv/test-ting-clean-1
This package is auto-updated.
Last update: 2024-11-17 10:55:26 UTC
README
- Require Ting Bundle with
composer require ccmbenchmark/ting_bundle
- Load Bundles in AppKernel.php
new CCMBenchmark\TingBundle\TingBundle(),
Configuration
#!yaml
ting:
repositories:
Acme:
namespace: Acme\DemoBundle\Entity
directory: "@DemoBundle/Entity"
options:
#pass options to your repository
Acme\DemoBundle\BazRepository:
extra:
bar: hello
foo: world
Acme\DemoBundle\FooRepository:
extra:
bar: hello
foo: world
default:
connection: main
database: baz
connections:
main:
namespace: CCMBenchmark\Ting\Driver\Mysqli
master:
host: localhost
user: world_sample
password: world_sample
port: 3306
slaves:
slave1:
host: 127.0.0.1
user: world_sample_ro
password: world_sample_ro
port: 3306
slave2:
host: 127.0.1.1
user: world_sample_ro
password: world_sample_ro
port: 3306
databases_options:
baz:
timezone: 'Europe/Paris'
Usage
From your controller call
#!php
$this->get('ting')->get('\Acme\DemoBundle\Entity\AcmeRepository');