for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BEAR\Resource\Module;
use BEAR\Resource\Annotation\AppName;
use Ray\Di\AbstractModule;
/**
* Provides ResourceInterface and derived bindings
*
* The following module is installed:
* AppName
* ResourceClientModule
* AnnotationModule
* EmbedResourceModule
* HttpClientModule
*/
final class ResourceModule extends AbstractModule
{
private string $appName;
* @param string $appName Application name ex) 'Vendor\Project'
public function __construct(string $appName = '')
$this->appName = $appName;
parent::__construct();
}
* {@inheritdoc}
protected function configure(): void
$this->install(new ResourceClientModule());
$this->install(new AnnotationModule());
$this->install(new EmbedResourceModule());
$this->install(new ());
$this->bind()->annotatedWith(AppName::class)->toInstance($this->appName);