<?php
/**
 * @package DJ-SectionsAnywhere
 * @copyright Copyright (C) 2017  DJ-Extensions.com LTD, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 *
 * DJContentFilters is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DJContentFilters is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with DJContentFilters. If not, see <http://www.gnu.org/licenses/>.
 *
 */



namespace DJExtensions\Yootheme\DJToggle;
defined('_JEXEC') or die;

// Initialize Joomla framework
use DJExtensions\Yootheme\DJToggle\Listener\BuilderListener;
use DJExtensions\Yootheme\DJToggle\Transform\RowTransform;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Object\CMSObject;
use YOOtheme\Builder;
use YOOtheme\Path;
use YOOtheme\Str;

return [
    'routes' => [
    ],
    'events' => [
        'customizer.init' => [
            BuilderListener::class => ['initCustomizer', -11]
        ],
        'builder.type' => [
            BuilderListener::class => ['addFormPanel', -10]
        ],
        'theme.head' => [
            BuilderListener::class => ['initHead',-10],
        ],
    ],
    'extend' => [
        Builder::class => function (Builder $builder, $app) {
            $builder->addTypePath(Path::get('./elements/*/element.json'));
            $builder->addTransform('prerender', new RowTransform);
        }

    ]


];
