Skip to content

Commit

Permalink
bind in lower module
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Jul 29, 2017
1 parent 9a2ed77 commit cf6d620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Module/ResourceClientModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use BEAR\Resource\LinkerInterface;
use BEAR\Resource\NamedParameter;
use BEAR\Resource\NamedParameterInterface;
use BEAR\Resource\OptionsMethods;
use BEAR\Resource\OptionsRenderer;
use BEAR\Resource\RenderInterface;
use BEAR\Resource\Resource;
Expand Down Expand Up @@ -49,5 +50,6 @@ protected function configure()
$this->bind(RenderInterface::class)->to(JsonRenderer::class)->in(Scope::SINGLETON);
$this->bind(Cache::class)->to(ArrayCache::class);
$this->bind(RenderInterface::class)->annotatedWith('options')->to(OptionsRenderer::class);
$this->bind(OptionsMethods::class);
}
}
2 changes: 0 additions & 2 deletions src/Module/ResourceModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace BEAR\Resource\Module;

use BEAR\Resource\Annotation\AppName;
use BEAR\Resource\OptionsMethods;
use Ray\Di\AbstractModule;

class ResourceModule extends AbstractModule
Expand All @@ -34,6 +33,5 @@ protected function configure()
$this->bind()->annotatedWith(AppName::class)->toInstance($this->appName);
$this->install(new ResourceClientModule);
$this->install(new EmbedResourceModule);
$this->bind(OptionsMethods::class);
}
}

0 comments on commit cf6d620

Please sign in to comment.