for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Anomaly\SettingsModule;
use Anomaly\SettingsModule\Setting\Command\GetSettingValue;
use Anomaly\Streams\Platform\Addon\Plugin\Plugin;
/**
* Class SettingsModulePlugin
*
* @link http://anomaly.is/streams-platform
* @author AnomalyLabs, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
* @package Anomaly\SettingsModule
*/
class SettingsModulePlugin extends Plugin
{
* Get the functions.
* @return array
public function getFunctions()
return [
new \Twig_SimpleFunction(
'setting_value',
function ($key, $default = null) {
return $this->dispatch(new GetSettingValue($key, $default));
}
)
];