<?php

/**
 * This file is part of Herbie.
 *
 * (c) Thomas Breuss <www.tebe.ch>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace herbie\plugin\xmlsitemap;

use Herbie;
use Herbie\Loader\FrontMatterLoader;
use Herbie\Menu\Page\Item;

class XmlsitemapPlugin extends Herbie\Plugin
{

    /**
     * @param Herbie\Event $event
     */
    public function onPluginsInitialized(Herbie\Event $event)
    {
        if($this->app['config']->isEmpty('plugins.config.xmlsitemap.no_page')) {
            $this->app['config']->push('pages.extra_paths', '@plugin/xmlsitemap/pages');
        }
    }
}

<?php

/**
 * This file is part of Herbie.
 *
 * (c) Thomas Breuss <www.tebe.ch>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace herbie\plugin\xmlsitemap;

use Herbie;
use Herbie\Loader\FrontMatterLoader;
use Herbie\Menu\Page\Item;

class XmlsitemapPlugin extends Herbie\Plugin
{

    /**
     * @param Herbie\Event $event
     */
    public function onPluginsInitialized(Herbie\Event $event)
    {
        if($this->config->isEmpty('plugins.config.xmlsitemap.no_page')) {
            $this->config->push('pages.extra_paths', '@plugin/xmlsitemap/pages');
        }
    }
}

Use config method from plugin class
Use config method from plugin class
