Skip to content

Commit

Permalink
[CLEANUP] Add comments and "::class" usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Suter committed Mar 8, 2016
1 parent a7777b7 commit 932bb5c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Classes/Browser/RecordBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@

use TYPO3\CMS\Recordlist\Browser\DatabaseBrowser;

/**
* Extends the DatabaseBrowser for the specific needs of the LinkBrowser.
*
* Mostly this is about being able to set to some parameters that cannot
* be set from outside the DatabaseBrowser.
*
* @package Cobweb\Linkhandler\Browser
*/
class RecordBrowser extends DatabaseBrowser
{
/**
Expand Down
5 changes: 3 additions & 2 deletions Classes/RecordLinkHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* The TYPO3 project - inspiring people to share!
*/

use Cobweb\Linkhandler\Browser\RecordBrowser;
use Psr\Http\Message\ServerRequestInterface;
use Cobweb\Linkhandler\Tree\View\RecordBrowserPageTreeView;
use TYPO3\CMS\Backend\Utility\BackendUtility;
Expand Down Expand Up @@ -168,8 +169,8 @@ public function render(ServerRequestInterface $request)
$this->expandPage = (int)$this->configuration['storagePid'];
}

/** @var \Cobweb\Linkhandler\Browser\RecordBrowser $databaseBrowser */
$databaseBrowser = GeneralUtility::makeInstance('Cobweb\\Linkhandler\\Browser\\RecordBrowser');
/** @var RecordBrowser $databaseBrowser */
$databaseBrowser = GeneralUtility::makeInstance(RecordBrowser::class);

// Page tree may be hidden
if ($this->configuration['hidePageTree']) {
Expand Down

0 comments on commit 932bb5c

Please sign in to comment.