for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BEAR\Package\Module;
use Ray\Di\AbstractModule;
class CacheNamespaceModule extends AbstractModule
{
/** @var string */
private $cacheNamespace;
public function __construct(string $cacheNamespace, ?AbstractModule $module = null)
$this->cacheNamespace = $cacheNamespace;
parent::__construct($module);
}
/**
* {@inheritdoc}
*/
protected function configure(): void
$this->bind()->annotatedWith('cache_namespace')->toInstance($this->cacheNamespace);