[TASK] Remove not necessary require_once in LiveSearchDataProvider
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Search / LiveSearch / ExtDirect / LiveSearchDataProvider.php
index 6979c69..b2ffbcd 100644 (file)
@@ -32,8 +32,6 @@ namespace TYPO3\CMS\Backend\Search\LiveSearch\ExtDirect;
  *
  * @author Michael Klapper <michael.klapper@aoemedia.de>
  * @author Jeff Segars <jeff@webempoweredchurch.org>
- * @package TYPO3
- * @subpackage t3lib
  */
 class LiveSearchDataProvider {
 
@@ -46,12 +44,12 @@ class LiveSearchDataProvider {
        );
 
        /**
-        * @var \TYPO3\CMS\Backend\Search\Livesearch\Livesearch
+        * @var \TYPO3\CMS\Backend\Search\LiveSearch\LiveSearch
         */
        protected $liveSearch = NULL;
 
        /**
-        * @var \TYPO3\CMS\Backend\Search\Livesearch\QueryParser
+        * @var \TYPO3\CMS\Backend\Search\LiveSearch\QueryParser
         */
        protected $queryParser = NULL;
 
@@ -59,10 +57,8 @@ class LiveSearchDataProvider {
         * Initialize the live search
         */
        public function __construct() {
-               // @todo Use the autoloader for this. Not sure why its not working.
-               require_once PATH_t3lib . 'search/class.t3lib_search_livesearch_queryParser.php';
-               $this->liveSearch = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Search\\Livesearch\\Livesearch');
-               $this->queryParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Search\\Livesearch\\QueryParser');
+               $this->liveSearch = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Search\\LiveSearch\\LiveSearch');
+               $this->queryParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Search\\LiveSearch\\QueryParser');
        }
 
        /**