Skip to content

1.5.0

Choose a tag to compare

@koriym koriym released this 15 May 03:58
· 1671 commits to 1.x since this release
613a5e9
  • [ADD] Add StorageApcModule #45

The APC cache was name-spaced, Therefore you can run multiple BEAR.Sunday app at same web server.

<?php
namespace BEAR\HelloWorld\Module;

use BEAR\QueryRepository\StorageApcModule;
use BEAR\Package\Context\ProdModule as PackageProdModule;
use Ray\Di\AbstractModule;
use Ray\Di\Scope;

class ProdModule extends AbstractModule
{
    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        // override APC-only cache for @Cacheable cahe (the default is APC+File chain cache in prod context.)
        $this->install(new StorageApcModule);

        // Install default ProdModule
        $this->install(new PackageProdModule);
    }
}

Thanks Mugima-san for the feedback !