PHP Class Bitpay\Bitpay

ファイルを表示 Open project: bitpay/php-client

Protected Properties

Property Type Description
$container Symfony\Component\DependencyInjection\ContainerInterface

Public Methods

Method Description
__construct ( array | string $config = [], Symfony\Component\DependencyInjection\ContainerInterface $container = null ) First argument can either be a string or fullpath to a yaml file that contains configuration parameters. For a list of configuration values see \Bitpay\Config\Configuration class
get ( $service ) : mixed
getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface

Protected Methods

Method Description
buildContainer ( $config ) Build the container of services and parameters
getParameters ( )
initializeContainer ( $config ) Initialize the container

Private Methods

Method Description
getContainerLoader ( Symfony\Component\DependencyInjection\ContainerInterface $container ) : Symfony\Component\Config\Loader\LoaderInterface
getDefaultExtensions ( ) : array Returns an array of the default extensions
prepareContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container )

Method Details

__construct() public method

The second argument is the container if you want to build one by hand.
public __construct ( array | string $config = [], Symfony\Component\DependencyInjection\ContainerInterface $container = null )
$config array | string
$container Symfony\Component\DependencyInjection\ContainerInterface

buildContainer() protected method

Build the container of services and parameters
protected buildContainer ( $config )

get() public method

public get ( $service ) : mixed
return mixed

getContainer() public method

public getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
return Symfony\Component\DependencyInjection\ContainerInterface

getParameters() protected method

protected getParameters ( )

initializeContainer() protected method

Initialize the container
protected initializeContainer ( $config )

Property Details

$container protected_oe property

protected ContainerInterface,Symfony\Component\DependencyInjection $container
return Symfony\Component\DependencyInjection\ContainerInterface