original_string: protected function addValidators(Application $app)
      {
          if (!isset($app['validator'])) {
              throw new Exception\MissingDependencyException('The validator manager is missing');
          }
  
          $provider = $this;
          $app['validator'] = $app->share(
              $app->extend(
                  'validator',
                  function ($validatorManager) use ($provider) {
                      return $provider->attachValidators($validatorManager);
                  }
              )
          );
      }
code: protected function addValidators(Application $app)
      {
          if (!isset($app['validator'])) {
              throw new Exception\MissingDependencyException('The validator manager is missing');
          }
  
          $provider = $this;
          $app['validator'] = $app->share(
              $app->extend(
                  'validator',
                  function ($validatorManager) use ($provider) {
                      return $provider->attachValidators($validatorManager);
                  }
              )
          );
      }
code_tokens: protected function addValidators ( Application $ app ) { if ( ! isset ( $ app [ 'validator' ] ) ) { throw new Exception \ MissingDependencyException ( 'The validator manager is missing' ) ; } $ provider = $ this ; $ app [ 'validator' ] = $ app -> share ( $ app -> extend ( 'validator' , function ( $ validatorManager ) use ( $ provider ) { return $ provider -> attachValidators ( $ validatorManager ) ; } ) ) ; }
docstring: Adds validators for the descriptors to the validator manager.
  
  @param Application $app
  
  @throws Exception\MissingDependencyException if the validator could not be found.
  
  @return void
docstring_tokens: Adds validators for the descriptors to the validator manager .