| 1234567891011121314151617181920212223242526 |
- <?php
- namespace Udun\Dispatch;
- use Pimple\Container;
- use Pimple\ServiceProviderInterface;
- class ClientsServiceProvider implements ServiceProviderInterface
- {
- /**
- * Registers services on the given container.
- *
- * This method should only be used to configure services and parameters.
- * It should not get services.
- *
- * @param Container $pimple A container instance
- */
- public function register(Container $pimple)
- {
- $pimple['clients'] = function ($pimple) {
- return new Clients($pimple['config']->get('merchant_no'), $pimple['config']->get('api_key'), $pimple['config']->get('gateway_address'), $pimple['config']->get('callUrl'));
- };
- }
- }
|