public function register(Application $app)
    {
        $app['parser.example.finder'] = new Example\Finder();

        $this->addCache($app);
        $this->addAssemblers($app);
        $this->addFilters($app);
        $this->addValidators($app);
        $this->addBuilder($app);

        // I would prefer to extend it but due to a circular reference will pimple fatal
        $this->attachFiltersToManager($app['descriptor.filter'], $app);

        $app['descriptor.analyzer'] = function () {
            return new ProjectAnalyzer();
        };
    }
public function register(Application $app)
    {
        $app['parser.example.finder'] = new Example\Finder();

        $this->addCache($app);
        $this->addAssemblers($app);
        $this->addFilters($app);
        $this->addValidators($app);
        $this->addBuilder($app);

        // I would prefer to extend it but due to a circular reference will pimple fatal
        $this->attachFiltersToManager($app['descriptor.filter'], $app);

        $app['descriptor.analyzer'] = function () {
            return new ProjectAnalyzer();
        };
    }
public function register ( Application $ app ) { $ app [ 'parser.example.finder' ] = new Example \ Finder ( ) ; $ this -> addCache ( $ app ) ; $ this -> addAssemblers ( $ app ) ; $ this -> addFilters ( $ app ) ; $ this -> addValidators ( $ app ) ; $ this -> addBuilder ( $ app ) ; // I would prefer to extend it but due to a circular reference will pimple fatal $ this -> attachFiltersToManager ( $ app [ 'descriptor.filter' ] , $ app ) ; $ app [ 'descriptor.analyzer' ] = function ( ) { return new ProjectAnalyzer ( ) ; } ; }
Adds the services needed to build the descriptors.

@param Application $app An Application instance

@return void
Adds the services needed to build the descriptors .