protected function registerEntityScanner()
    {
        $app = $this->app;

        $app->singleton('datamapper.entity.scanner', function ($app) {
            $reader = $app['datamapper.annotationreader'];

            $validator = new EntityValidator;

            return new EntityScanner($reader, $validator);
        });
    }
protected function registerEntityScanner()
    {
        $app = $this->app;

        $app->singleton('datamapper.entity.scanner', function ($app) {
            $reader = $app['datamapper.annotationreader'];

            $validator = new EntityValidator;

            return new EntityScanner($reader, $validator);
        });
    }
protected function registerEntityScanner ( ) { $ app = $ this -> app ; $ app -> singleton ( 'datamapper.entity.scanner' , function ( $ app ) { $ reader = $ app [ 'datamapper.annotationreader' ] ; $ validator = new EntityValidator ; return new EntityScanner ( $ reader , $ validator ) ; } ) ; }
Register the entity scanner implementation.

@return void
Register the entity scanner implementation .