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