2017 © Pedro Peláez
 

symfony-bundle model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

image

xsolve-pl/model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  • Monday, June 4, 2018
  • by malef
  • Repository
  • 49 Watchers
  • 11 Stars
  • 11,977 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 6 Forks
  • 1 Open issues
  • 17 Versions
  • 17 % Grown

The README.md

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads Monthly Downloads License, (*1)

Table of contents

Introduction

This bundle wraps xsolve-pl/model-factory library and allows to compose collections of model factories declared as services with the use of tags., (*2)

See the library documentation for more details on specific use cases., (*3)

License

This bundle is under the MIT license. See the complete license in LICENSE file., (*4)

Getting started

Include this bundle in your Symfony project using Composer as follows (assuming it is installed globally):, (*5)

$ composer require xsolve-pl/model-factory-bundle

For more information on Composer see its Introduction., (*6)

Afterwards you need to enable this bundle by adding a line to app/AppKernel.php file of your project:, (*7)



<container xmlns="http://symfony.com/schema/dic/services"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>

        <service id="example.model_factory_collection.first"
                 class="Xsolve\ModelFactoryBundle\ModelFactoryCollection\ModelFactoryCollection"
        />

        <service id="example.model_factory_collection.second"
                 class="Xsolve\ModelFactoryBundle\ModelFactoryCollection\ModelFactoryCollection"
        />

        <service id="example.model_factory.foo"
                 class="Example\FooModelFactory"
        >
            <tag name="xsolve.model_factory_bundle.model_factory"
                 model-factory-collection-id="example.model_factory_collection.first"
            />
            <tag name="xsolve.model_factory_bundle.model_factory"
                 model-factory-collection-id="example.model_factory_collection.second"
            />
        </service>

    </services>

</container>

This snippet defines two model factory collections (with ids example.model_factory_collection.first and example.model_factory_collection.second respectively). It also defines a single model factory (with id example.model_factory.foo). This service has a tag assigned with name attribute equal xsolve.model_factory_bundle.model_factory (which will result in it being processed by Xsolve\ModelFactoryBundle\DependencyInjection\CompilerPass\ModelFactoryCollectionCompilerPass) and model-factory-collection-id attribute containing service ids of respective collections., (*8)

The Versions

04/06 2018
17/05 2018

dev-symfony-4

dev-symfony-4 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

13/10 2017

v1.0.9

1.0.9.0 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

29/09 2017

v1.0.8

1.0.8.0 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

29/09 2017

dev-more-badges

dev-more-badges http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

29/09 2017

v1.0.7

1.0.7.0 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

29/09 2017

dev-badges

dev-badges http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

28/12 2016

v1.0.6

1.0.6.0 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

04/10 2016

v1.0.5

1.0.5.0 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

01/09 2016

v1.0.4

1.0.4.0 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

01/09 2016

v1.0.3

1.0.3.0 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

18/08 2016

v1.0.2

1.0.2.0 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

18/08 2016

v1.0.1

1.0.1.0 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest

18/08 2016

v1.0.0

1.0.0.0 http://github.com/xsolve-pl/xsolve-model-factory-bundle

This bundle provides a versatile skeleton for organizing model factories.

  Sources   Download

MIT

The Requires

 

The Development Requires

rest