<?php
/**
 * Kodekit Platform - http://www.timble.net/kodekit
 *
 * @copyright	Copyright (C) 2011 - 2016 Johan Janssens and Timble CVBA. (http://www.timble.net)
 * @license		MPL v2.0 <https://www.mozilla.org/en-US/MPL/2.0>
 * @link		https://github.com/timble/kodekit-platform for the canonical source repository
 */

return array(

    'aliases'  => array(
        'application'       => 'com:application.dispatcher',
        'application.sites' => 'com:application.model.composite.sites',
        'translator'        => 'com:application.translator',

        'lib:dispatcher.router.route' => 'com:application.dispatcher.router.route',
    ),

    'identifiers' => array(

        'dispatcher' => array(
            'behaviors' => array('com:application.dispatcher.behavior.documentable')
        ),
    )
);

<?php
/**
 * Kodekit Platform - http://www.timble.net/kodekit
 *
 * @copyright	Copyright (C) 2011 - 2016 Johan Janssens and Timble CVBA. (http://www.timble.net)
 * @license		MPL v2.0 <https://www.mozilla.org/en-US/MPL/2.0>
 * @link		https://github.com/timble/kodekit-platform for the canonical source repository
 */

use Kodekit\Library;

return array(

    'priority' => Library\ObjectBootstrapperInterface::PRIORITY_LOW,
    'aliases'  => array(
        'application'       => 'com:application.dispatcher',
        'application.sites' => 'com:application.model.composite.sites',
        'translator'        => 'com:application.translator',

        'lib:dispatcher.router.route' => 'com:application.dispatcher.router.route',
    ),

    'identifiers' => array(

        'dispatcher' => array(
            'behaviors'=> array('decoratable' => array('decorators' => 'com:application.controller.document')),
        )
    )
);

Add the decoratable behavior to the dispatcher and add the document controller as decorator
Add the decoratable behavior to the dispatcher and add the document controller as decorator
