private function getBundleById($id)
    {
        if (null === $bundle = $this->getApplication()->getBundle($id)) {
            throw new NotFoundHttpException("No bundle exists with id `$id`");
        }

        return $bundle;
    }
private function getBundleById($id)
    {
        if (null === $bundle = $this->getApplication()->getBundle($id)) {
            throw new NotFoundHttpException("No bundle exists with id `$id`");
        }

        return $bundle;
    }
private function getBundleById ( $ id ) { if ( null === $ bundle = $ this -> getApplication ( ) -> getBundle ( $ id ) ) { throw new NotFoundHttpException ( "No bundle exists with id `$id`" ) ; } return $ bundle ; }
Returns a bundle by id.

@param string $id

@throws NotFoundHttpException is raise if no bundle was found with provided id

@return BundleInterface
Returns a bundle by id .