Skip to content

Commit

Permalink
Ustawienie tagów w serwisach
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartłomiej Chojnowski committed Jun 1, 2016
1 parent 83511b7 commit f3f5e76
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions DependencyInjection/KCHSmsApiExtension.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -55,30 +55,40 @@ private function registerFactories(ContainerBuilder $container, Definition $clie
$container->setDefinition(
sprintf('kch_sms_api.sms_factory.%s', $clientName),
new Definition('%kch_sms_api.sms_factory.class%')
)->addMethodCall('setClient', array($clientService));
)
->addMethodCall('setClient', array($clientService))
->addTag('kch_sms_api.factory', array('alias' => 'kch_sms_api_factory'));

// MmsFactory
$container->setDefinition(
sprintf('kch_sms_api.mms_factory.%s', $clientName),
new Definition('%kch_sms_api.mms_factory.class%')
)->addMethodCall('setClient', array($clientService));
)
->addMethodCall('setClient', array($clientService))
->addTag('kch_sms_api.factory', array('alias' => 'kch_sms_api_factory'));

// VmsFactory
$container->setDefinition(
sprintf('kch_sms_api.vms_factory.%s', $clientName),
new Definition('%kch_sms_api.vms_factory.class%')
)->addMethodCall('setClient', array($clientService));
)
->addMethodCall('setClient', array($clientService))
->addTag('kch_sms_api.factory', array('alias' => 'kch_sms_api_factory'));

// SenderFactory
$container->setDefinition(
sprintf('kch_sms_api.sender_factory.%s', $clientName),
new Definition('%kch_sms_api.sender_factory.class%')
)->addMethodCall('setClient', array($clientService));
)
->addMethodCall('setClient', array($clientService))
->addTag('kch_sms_api.factory', array('alias' => 'kch_sms_api_factory'));

// ContactsFactory
$container->setDefinition(
sprintf('kch_sms_api.contacts_factory.%s', $clientName),
new Definition('%kch_sms_api.contacts_factory.class%')
)->addMethodCall('setClient', array($clientService));
)
->addMethodCall('setClient', array($clientService))
->addTag('kch_sms_api.factory', array('alias' => 'kch_sms_api_factory'));
}
}

0 comments on commit f3f5e76

Please sign in to comment.