2017 © Pedro Peláez
 

library services

image

bapcat/services

  • Wednesday, September 16, 2015
  • by LordMonoxide
  • Repository
  • 4 Watchers
  • 0 Stars
  • 443 Installations
  • PHP
  • 4 Dependents
  • 2 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Build Status Coverage Status License, (*1)

Services

This package provides a controlled boot environment for cross-package dependencies., (*2)

Installation

Composer

Composer is the recommended method of installation for BapCat packages., (*3)

$ composer require bapcat/services

GitHub

BapCat packages may be downloaded from GitHub., (*4)

Features

Registration

The main use for Services is to register IoC bindings., (*5)

<?php namespace BapCat\CoolLogger;

use BapCat\CoolLogger\Logger;

use BapCat\Interfaces\Ioc\Ioc;

class LoggingServiceProvider implements ServiceProvider {
  private $ioc;

  public function __construct(Ioc $ioc) {
    $this->ioc = $ioc;
  }

  public function register() {
    // Make Logger a singleton
    $this->ioc->singleton(Logger::class, Logger::class);

    // Bind the bap.log alias to the Logger singleton
    $this->ioc->bind('bap.log', Logger::class);
  }
}

The Versions

16/09 2015

dev-master

9999999-dev http://github.com/BapCat/Services

  Sources   Download

GPLv3

The Requires

 

by Corey Frenette

service services provider

16/09 2015

0.2

0.2.0.0 http://github.com/BapCat/Services

  Sources   Download

GPLv3

The Requires

 

by Corey Frenette

service services provider

16/09 2015

0.1.0

0.1.0.0 http://github.com/BapCat/Services

  Sources   Download

GPLv3

The Requires

 

by Corey Frenette

service services provider