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