protected function loadHelper($id, $onlyCheck = false) {
		$namespaces = $this->getNamespaces();
		
		if (empty($namespaces)) {
			throw new NoNamespaces('Wasn\'t a namespaces registered');
		}
		
		$misses = &$this->_loadMisses;
		set_error_handler(function() use(&$misses) {
			++ $misses;
		});
		
		foreach ($this->_namespaces as $namespace) {
			$class = $namespace . '\\' . ucfirst($id);
			
			if (class_exists($class)) {
				restore_error_handler();
				unset($misses);
				
				if ($onlyCheck) {
					return true;
				} else {
					$helper = new $class();
					
					if (! $helper instanceof HelperInterface) {
						throw new WrongHelper('Helper must implement the "HelperInterface"');
					}
					
					return $helper;
				}
			}
		}
		
		restore_error_handler();
		unset($misses);
	}
protected function loadHelper($id, $onlyCheck = false) {
		$namespaces = $this->getNamespaces();
		
		if (empty($namespaces)) {
			throw new NoNamespaces('Wasn\'t a namespaces registered');
		}
		
		$misses = &$this->_loadMisses;
		set_error_handler(function() use(&$misses) {
			++ $misses;
		});
		
		foreach ($this->_namespaces as $namespace) {
			$class = $namespace . '\\' . ucfirst($id);
			
			if (class_exists($class)) {
				restore_error_handler();
				unset($misses);
				
				if ($onlyCheck) {
					return true;
				} else {
					$helper = new $class();
					
					if (! $helper instanceof HelperInterface) {
						throw new WrongHelper('Helper must implement the "HelperInterface"');
					}
					
					return $helper;
				}
			}
		}
		
		restore_error_handler();
		unset($misses);
	}
protected function loadHelper ( $ id , $ onlyCheck = false ) { $ namespaces = $ this -> getNamespaces ( ) ; if ( empty ( $ namespaces ) ) { throw new NoNamespaces ( 'Wasn\'t a namespaces registered' ) ; } $ misses = & $ this -> _loadMisses ; set_error_handler ( function ( ) use ( & $ misses ) { ++ $ misses ; } ) ; foreach ( $ this -> _namespaces as $ namespace ) { $ class = $ namespace . '\\' . ucfirst ( $ id ) ; if ( class_exists ( $ class ) ) { restore_error_handler ( ) ; unset ( $ misses ) ; if ( $ onlyCheck ) { return true ; } else { $ helper = new $ class ( ) ; if ( ! $ helper instanceof HelperInterface ) { throw new WrongHelper ( 'Helper must implement the "HelperInterface"' ) ; } return $ helper ; } } } restore_error_handler ( ) ; unset ( $ misses ) ; }
Load the service

@param  string $id
@return HelperInterface | bool
@throws NoNamespaces
@throws WrongHelper
Load the service