forked from fa/breadcrumb-the-shire
21 lines
572 B
PHP
21 lines
572 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace MintyPHP\App\Module\Contracts;
|
||
|
|
|
||
|
|
use MintyPHP\App\AppContainer;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Provides module-specific data for the layout navigation context.
|
||
|
|
*
|
||
|
|
* Called from appBuildLayoutNavContext() after Core data assembly.
|
||
|
|
* Return value is merged into the $layoutNav array passed to templates.
|
||
|
|
*/
|
||
|
|
interface LayoutContextProvider
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @param array<string, mixed> $session Current session data
|
||
|
|
* @return array<string, mixed> Key-value pairs to merge into $layoutNav
|
||
|
|
*/
|
||
|
|
public function provide(array $session, AppContainer $container): array;
|
||
|
|
}
|