2017 © Pedro Peláez
 

symfony-bundle doctrine-api-bundle

Doctrine-faced RPC API Client Bundle

image

bankiru/doctrine-api-bundle

Doctrine-faced RPC API Client Bundle

  • Tuesday, May 23, 2017
  • by scaytrase
  • Repository
  • 3 Watchers
  • 0 Stars
  • 6,818 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight, (*2)

Doctrine-faced RPC Bundle

This bundle incorporates doctrine API library bankiru/doctrine-api-client, (*3)

Services

This bundle provides the only public service to use - @bankiru_api.entity_manager. This service implements ApiEntityManager extends ObjectManager interface, (*4)

Features

Automatic bundle metadata registration

This bundle automatically registers all bundles yaml annotations if they are stored at @BundleName\Resources\config\api location., (*5)

Client aggregation

This bundle automatically registers all services, marked with rpc_client tag into the library client registry, i.e, (*6)

  bankiru_api.test.client:
    class: Bankiru\Api\Tests\TestClient
    arguments:
    - "@bankiru_api.test.client_mock"
    tags:
    - { name: rpc_client, client_name: test_client }

Profiling

This bundle enables RPC client profiling and time tracing with internal Symfony components - stopwatch and web debug toolbar., (*7)

@Todo: populate with screenshots, (*8)

Cache configuration

# TTL only
api_client:
    cache:
        configuration:
            Bankiru\Api\Doctrine\Test\Entity\TestEntity: 900
# Default
api_client:
    cache:
        configuration:
            Bankiru\Api\Doctrine\Test\Entity\TestEntity:
                enabled: false
# Enabled defaults
api_client:
    cache:
        configuration:
            Bankiru\Api\Doctrine\Test\Entity\TestEntity:
                enabled: true
                ttl: ~
                extra: {}
# Extra keys would be available within API entity cache via CacheConfigurationInterface
api_client:
    cache:
        configuration:
            Bankiru\Api\Doctrine\Test\Entity\TestEntity:
                enabled: true
                ttl: 900
                extra:
                    quick_search: true

The Versions