2017 © Pedro Peláez
 

library behat-symfony-dependency-injection-container-extension

Allows to load additional dependency injection config files for behat

image

solutiondrive/behat-symfony-dependency-injection-container-extension

Allows to load additional dependency injection config files for behat

  • Tuesday, March 6, 2018
  • by sd_alt
  • Repository
  • 4 Watchers
  • 0 Stars
  • 191 Installations
  • Gherkin
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 25 % Grown

The README.md

BehatSymfonyDependencyInjectionContainerExtension

Extension to load additional dependency injection config files for behat, (*1)

Inspired by FriendsOfBehat/ServiceContainerExtension, (*2)

Usage

  1. Install it:, (*3)

    $ composer require solutiondrive/behat-symfony-dependency-injection-container-extension --dev
    
  2. Enable this extension and configure Behat to use it:, (*4)

    # behat.yml
    default:
        # ...
        extensions:
            solutionDrive\BehatSymfonyDependencyInjectionContainerExtension:
                identifiers:
                    solutionDrive:
                        imports:
                            - "config/solutionDrive/services.xml"
                            - "config/solutionDrive/services.yml"
                            - "config/solutionDrive/services.php"
    
  3. Write services file definitions:, (*5)

    <!-- config/solutionDrive/services.xml -->
    <?xml version="1.0" encoding="UTF-8" ?>
    <container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://symfony.com/schema/dic/services">
        <services>
            <service id="acme.my_service" class="Acme\MyService" />
        </services>
    </container>
    
    # config/solutionDrive/services.yml
    services:
        acme.my_service:
            class: Acme\MyService
    
    // config/solutionDrive/services.php
    use Symfony\Component\DependencyInjection\Definition;
    
    $container->setDefinition('acme.my_service', new Definition(\Acme\MyService::class));
    

The Versions

06/03 2018

dev-master

9999999-dev

Allows to load additional dependency injection config files for behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar solutionDrive GmbH

06/03 2018

v0.1.0

0.1.0.0

Allows to load additional dependency injection config files for behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar solutionDrive GmbH

06/03 2018

dev-feature/initial-work

dev-feature/initial-work

Allows to load additional dependency injection config files for behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar solutionDrive GmbH

06/03 2018

dev-feature/enable-composer

dev-feature/enable-composer

Allows to load additional dependency injection config files for behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar solutionDrive GmbH