chanmix51 / PommServiceProvider

The Pomm Extension for the Silex µFramework
http://pomm.coolkeums.org
4 stars 4 forks source link

Silex update ServiceProviderInterface #1

Closed pgoergler closed 12 years ago

pgoergler commented 12 years ago

The new Silex\ServiceProviderInterface add one method boot but it's not implemented in PommServiceProvider

 <?php

/*
 * This file is part of the Silex framework.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Silex;

/**
 * Interface that must implement all Silex service providers.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
interface ServiceProviderInterface
{
    /**
     * Registers services on the given app.
     *
     * This method should only be used to configure services and parameters.
     * It should not get services.
     *
     * @param Application $app An Application instance
     */
    function register(Application $app);

    /**
     * Bootstraps the application.
     *
     * This method is called after all services are registers
     * and should be used for "dynamic" configuration (whenever
     * a service must be requested).
     */
    function boot(Application $app);
}
chanmix51 commented 12 years ago

Should be fixed in 3cdf6548d42e5858c057137799bd049a4a54c1ee