/**
  * @inheritdoc
  */
 public function registerBindings(IContainer $container)
 {
     $strings = $this->getStringUtility();
     $container->bind(IEncrypter::class, $this->getEncrypter($strings));
     $container->bind(IHasher::class, $this->getHasher($strings));
     $container->bind(Strings::class, $strings);
 }
 /**
  * @inheritdoc
  */
 public function registerBindings(IContainer $container)
 {
     $composer = Composer::createFromRawConfig($this->paths);
     $executable = new Executable($this->paths);
     $container->bind(Composer::class, $composer);
     $container->bind(Executable::class, $executable);
 }
 /**
  * @inheritdoc
  */
 public function registerBindings(IContainer $container)
 {
     $container->bind(IParser::class, $this->getRequestParser($container));
 }
 /**
  * Gets the view compiler
  * To use a different view compiler than the one returned here, extend this class and override this method
  *
  * @param IContainer $container The dependency injection container
  * @return ICompiler The view compiler
  */
 protected function getViewCompiler(IContainer $container)
 {
     $registry = new CompilerRegistry();
     $viewCompiler = new Compiler($registry);
     // Setup our various sub-compilers
     $transpiler = new Transpiler(new Lexer(), new Parser(), $this->viewCache, new XssFilter());
     $container->bind(ITranspiler::class, $transpiler);
     $fortuneCompiler = new FortuneCompiler($transpiler, $this->viewFactory);
     $registry->registerCompiler("fortune", $fortuneCompiler);
     $registry->registerCompiler("fortune.php", $fortuneCompiler);
     $registry->registerCompiler("php", new PhpCompiler());
     return $viewCompiler;
 }
 /**
  * @inheritdoc
  */
 public function registerBindings(IContainer $container)
 {
     $container->bind(ISession::class, $this->getSession($container));
     $container->bind(SessionHandlerInterface::class, $this->getSessionHandler($container));
 }
 /**
  * @inheritdoc
  */
 public function registerBindings(IContainer $container)
 {
     $container->bind(Request::class, Request::createFromGlobals());
 }