| @@ 18-26 (lines=9) @@ | ||
| 15 | return 'adapter'; |
|
| 16 | } |
|
| 17 | ||
| 18 | public function create(ContainerBuilder $container, $id, array $config) |
|
| 19 | { |
|
| 20 | $container |
|
| 21 | ->setDefinition($id, new DefinitionDecorator('oneup_flysystem.cache.adapter')) |
|
| 22 | ->replaceArgument(0, new Reference(sprintf('oneup_flysystem.%s_adapter', $config['adapter']))) |
|
| 23 | // ->replaceArgument(1, $config['key']) |
|
| 24 | // ->replaceArgument(2, $config['expires']) |
|
| 25 | ; |
|
| 26 | } |
|
| 27 | ||
| 28 | public function addConfiguration(NodeDefinition $node) |
|
| 29 | { |
|
| @@ 18-26 (lines=9) @@ | ||
| 15 | return 'slack'; |
|
| 16 | } |
|
| 17 | ||
| 18 | public function create(ContainerBuilder $container, $id, array $config) |
|
| 19 | { |
|
| 20 | $container |
|
| 21 | ->setDefinition($id, new DefinitionDecorator('notification.broadcaster.slack')) |
|
| 22 | ->replaceArgument(0, new Reference(sprintf('notification.%s_adapter', $config['adapter']))) |
|
| 23 | // ->replaceArgument(1, $config['key']) |
|
| 24 | // ->replaceArgument(2, $config['expires']) |
|
| 25 | ; |
|
| 26 | } |
|
| 27 | ||
| 28 | public function addConfiguration(NodeDefinition $node) |
|
| 29 | { |
|