2017 © Pedro Peláez
 

library service-container-extension

Allows to declare own services inside Behat container without writing an extension.

image

friends-of-behat/service-container-extension

Allows to declare own services inside Behat container without writing an extension.

  • Tuesday, February 13, 2018
  • by pamil
  • Repository
  • 2 Watchers
  • 47 Stars
  • 114,399 Installations
  • Gherkin
  • 82 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 6 Versions
  • 19 % Grown

The README.md

Service Container Extension License Version Build status on Linux Scrutinizer Quality Score

Allows to declare own services inside Behat container without writing an extension., (*1)

Usage

  1. Install it:, (*2)

    $ composer require friends-of-behat/service-container-extension --dev
    
  2. Enable this extension and configure Behat to use it:, (*3)

    # behat.yml
    default:
        # ...
        extensions:
            FriendsOfBehat\ServiceContainerExtension:
                imports:
                    - "features/bootstrap/config/services.xml"
                    - "features/bootstrap/config/services.yml"
                    - "features/bootstrap/config/services.php"
    
  3. Write services files definitions:, (*4)

    <!-- features/bootstrap/config/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>
    
    # features/bootstrap/config/services.yml
    services:
        acme.my_service:
            class: Acme\MyService
    
    // features/bootstrap/config/services.php
    use Symfony\Component\DependencyInjection\Definition;
    
    $container->setDefinition('acme.my_service', new Definition(\Acme\MyService::class));
    

The Versions

13/02 2018

dev-master

9999999-dev

Allows to declare own services inside Behat container without writing an extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

13/02 2018

v1.0.1

1.0.1.0

Allows to declare own services inside Behat container without writing an extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/07 2017

v1.0.0

1.0.0.0

Allows to declare own services inside Behat container without writing an extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/11 2016

v0.3.0

0.3.0.0

Allows to declare own services inside Behat container without writing an extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/08 2016

v0.2.0

0.2.0.0

Allows to declare own services inside Behat container without writing an extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

09/08 2016

v0.1.0

0.1.0.0

Allows to declare own services inside Behat container without writing an extension.

  Sources   Download

MIT

The Requires

 

The Development Requires