2017 © Pedro Peláez
 

library services-loader

Easier loading of services.d

image

ppokatilo/services-loader

Easier loading of services.d

  • Sunday, January 10, 2016
  • by SHyx0rmZ
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6,535 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 13 % Grown

The README.md

services-loader

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Easier loading of services in your Symfony2 bundle's extension., (*2)

How to use

Use ServiceLoader to load service definitions from files in directories (recursively, if you wish)., (*3)

<?php

namespace You\YourBundle\DependencyInjection;

use SHyx0rmZ\ServicesLoader\ServicesLoader;

class YourExtension extends Extension
{
  public function load(array $config, ContainerBuilder $container)
  {
    $loader = new ServiceLoader($container);
    $loader->loadFromFile(__DIR__ . '/../Resources/config/services.ini');
    $loader->loadFromDirectory(__DIR__ . '/../Resources/config/services.d');
  }
}

Use the Extension to make loading even easier., (*4)

<?php

namespace You\YourBundle\DependencyInjection;

use SHyx0rmZ\ServicesLoader\Extension\ServicesLoaderExtension;

class YourExtension extends ServicesLoaderExtension
{
}

Which will load service definitions from:, (*5)

  • YourBundle/Resources/config/services.ini
  • YourBundle/Resources/config/services.php
  • YourBundle/Resources/config/services.xml
  • YourBundle/Resources/config/services.yml
  • and everything in services.d
    • YourBundle/Resources/config/services.d/commands.yml
    • YourBundle/Resources/config/services.d/database/clients.yml

The Versions

10/01 2016

dev-master

9999999-dev http://github.com/SHyx0rmZ/services-loader

Easier loading of services.d

  Sources   Download

MIT

The Requires

 

by Patrick Pokatilo

services symfony

10/01 2016

v1.1.5

1.1.5.0 http://github.com/SHyx0rmZ/services-loader

Easier loading of services.d

  Sources   Download

MIT

The Requires

 

by Patrick Pokatilo

services symfony

16/03 2015

v1.1.4

1.1.4.0 http://github.com/SHyx0rmZ/services-loader

Easier loading of services.d

  Sources   Download

MIT

The Requires

 

by Patrick Pokatilo

services symfony

10/12 2014

v1.1.3

1.1.3.0 http://github/SHyx0rmZ/services-loader

Easier loading of services.d

  Sources   Download

MIT

The Requires

 

by Patrick Pokatilo

services symfony

01/12 2014

v1.1.2

1.1.2.0 http://github/SHyx0rmZ/services-loader

Easier loading of services.d

  Sources   Download

MIT

The Requires

 

by Patrick Pokatilo

services symfony

01/12 2014

v1.1.1

1.1.1.0 http://github/SHyx0rmZ/services-loader

Easier loading of services.d

  Sources   Download

MIT

The Requires

 

by Patrick Pokatilo

services symfony

29/11 2014

v1.1.0

1.1.0.0 http://github/SHyx0rmZ/services-loader

Easier loading of services.d

  Sources   Download

MIT

The Requires

 

by Patrick Pokatilo

services symfony

29/11 2014

v1.0.0

1.0.0.0 http://github/SHyx0rmZ/services-loader

Easier loading of services.d

  Sources   Download

MIT

The Requires

 

by Patrick Pokatilo

services symfony