2017 © Pedro Peláez
 

library drupal-psr-16

Convert Drupal 8 Cache objects to PSR-16 compliant cache objects

image

highwire/drupal-psr-16

Convert Drupal 8 Cache objects to PSR-16 compliant cache objects

  • Tuesday, July 11, 2017
  • by phayes
  • Repository
  • 11 Watchers
  • 0 Stars
  • 3,410 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 77 % Grown

The README.md

drupal-psr-16

Convert Drupal 8 Cache objects to PSR-16 compliant cache objects, (*1)

Build Status Code Coverage, (*2)

Installation

composer require highwire\drupal-psr-16

Using PHP

<?php

$drupalcache = \Drupal::cache('mybin');

$psr16cache = new \HighWire\DrupalPSR16\Cache($drupalcache);

// Now do something with the PSR-16 compliant cache

Using Drupal services

services:
  cache.mybin: # Custom cache bin called 'mybin'
    class: Drupal\Core\Cache\CacheBackendInterface
    tags:
      - { name: cache.bin }
    factory: cache_factory:get
    arguments: [mybin]
  psr16.mybin: # PSR 16 service that returns a bin as a PSR-16 compliant object
    class: HighWire\DrupalPSR16\Cache
    arguments: ['@cache.mybin']
  psr16.default: # PSR 16 service that returns the default bin as a PSR-16 compliant object
    class: HighWire\DrupalPSR16\Cache
    arguments: ['@cache.default']
  3rdparty.library: # 3rd Party Library that takes a PSR-16 compliant cache controller
    class: Some\Third\Party\Library
    arguments: ['@some.other.service']
    calls:
      - [setCache, ['@psr16.mybin']]

The Versions

11/07 2017

dev-master

9999999-dev

Convert Drupal 8 Cache objects to PSR-16 compliant cache objects

  Sources   Download

GPLv3

The Requires

 

The Development Requires

by Avatar phayes

cache drupal psr-16

11/07 2017

1.0.0

1.0.0.0

Convert Drupal 8 Cache objects to PSR-16 compliant cache objects

  Sources   Download

GPLv3

The Requires

 

The Development Requires

by Avatar phayes

cache drupal psr-16