PHP code example of itk-dev / drupal_psr6_cache

1. Go to this page and download the library: Download itk-dev/drupal_psr6_cache library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

itk-dev / drupal_psr6_cache example snippets


// src/SomeService.php
namespace Drupal/my_module;

use Psr\Cache\CacheItemPoolInterface;

class SomeService {
  __construct(CacheItemPoolInterface $cacheItemPool) {
    …
  }
}