<?php

/*
|-----------------------------------------------------------
| Create the Theme
|-----------------------------------------------------------
|
| Create a new Theme instance which behaves as singleton.
| This allows for easily bind and resolve various
| parts across all theme components.
|
*/

$theme = Tonik\Gin\Foundation\Theme::getInstance();


/*
|-----------------------------------------------------------
| Bind Theme Config
|-----------------------------------------------------------
|
| We neet to bind all configs like theme's paths, directories
| and files to autoload. We look for child theme config
| file before binding values inside theme registry.
|
*/

$config = require __DIR__ . '/../config/theme.php';

$theme->bind('config', new Tonik\Gin\Foundation\Config($config));


/*
|-----------------------------------------------------------
| Return the Theme
|-----------------------------------------------------------
|
| Here we returns the theme instance. Later, this instance
| is used for autoload all theme's core component.
|
*/

return $theme;

<?php

/*
|-----------------------------------------------------------
| Create the Theme
|-----------------------------------------------------------
|
| Create a new Theme instance which behaves as singleton.
| This allows for easily bind and resolve various
| parts across all theme components.
|
*/

$theme = Tonik\Gin\Foundation\Theme::getInstance();


/*
|-----------------------------------------------------------
| Bind Theme Config
|-----------------------------------------------------------
|
| We neet to bind configs like theme's paths, directories and
| files to autoload. This values will be used by the rest
| of theme components like assets, templates etc.
|
*/

$config = require __DIR__ . '/../config/theme.php';

$theme->bind('config', new Tonik\Gin\Foundation\Config($config));


/*
|-----------------------------------------------------------
| Return the Theme
|-----------------------------------------------------------
|
| Here we returns the theme instance. Later, this instance
| is used for autoload all theme's core component.
|
*/

return $theme;

Change comment on the config binding
Change comment on the config binding
