ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Pimple\Tests\Fixtures\PimpleServiceProvider Class Reference
+ Inheritance diagram for Pimple\Tests\Fixtures\PimpleServiceProvider:
+ Collaboration diagram for Pimple\Tests\Fixtures\PimpleServiceProvider:

Public Member Functions

 register (Container $pimple)
 Registers services on the given container. More...
 

Detailed Description

Definition at line 32 of file PimpleServiceProvider.php.

Member Function Documentation

◆ register()

Pimple\Tests\Fixtures\PimpleServiceProvider::register ( Container  $pimple)

Registers services on the given container.

This method should only be used to configure services and parameters. It should not get services.

Parameters
Container$pimpleAn Container instance

Implements Pimple\ServiceProviderInterface.

Definition at line 42 of file PimpleServiceProvider.php.

43  {
44  $pimple['param'] = 'value';
45 
46  $pimple['service'] = function () {
47  return new Service();
48  };
49 
50  $pimple['factory'] = $pimple->factory(function () {
51  return new Service();
52  });
53  }

The documentation for this class was generated from the following file: