<?php
/**
 * @package     DOCman
 * @copyright   Copyright (C) 2019 Timble CVBA. (http://www.timble.net)
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.joomlatools.com
 */

namespace Foliolabs\Docman\Site;

use Foliolabs\Component\Base;
use Foliolabs\Library;

class ControllerSearch extends Base\ControllerModel
{
    protected function _initialize(Library\ObjectConfig $config)
    {
        $config->append([
            'model' => 'documents',
            'behaviors' => [
                'com://site/docman.controller.behavior.filterable' => [
                    'options' => ['sort' => 'sort_documents']
                ]
            ]
        ]);
        
        parent::_initialize($config);
    }
}
