2017 © Pedro Peláez
 

library autoloader-service-provider

Simple transisiton Service Provider mapping the deprecated Silex autoloader to Composer

image

ae35/autoloader-service-provider

Simple transisiton Service Provider mapping the deprecated Silex autoloader to Composer

  • Wednesday, August 22, 2012
  • by kleingeist
  • Repository
  • 1 Watchers
  • 1 Stars
  • 104 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AutoloaderServiceProvider

Simple transisitonal Service Provider mapping the deprecated Silex autoloader to Composer., (*1)

Silex replaced its own autoloader in favour of the one configured with composer. Unfortunately this will break many ServiceProviders, that are not under active development and makes it impossible to add namespaces dynamically. For example https://github.com/mjakubowski/nutwerk-orm-extension has to register namespaces dependent on the config., (*2)

This Service Provider can work as an interim solution until more of the Third Party Providers are updated and can provide dynamic extension of namespaces., (*3)

Usage

Add ae35/autoloader-service-provider as a requirement to your composer.json and register the Service Provider in Silex, (*4)

<?php

$loader = require_once __DIR__ . '/../vendor/autoload.php';

$app->register(new ae35\Provider\ComposerAutoloaderServiceProvider($loader));

The Versions

22/08 2012

dev-master

9999999-dev http://ae35.de

Simple transisiton Service Provider mapping the deprecated Silex autoloader to Composer

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

composer silex autoloader provider