Commit d5bd3aa6 by Van

Update

parent 65a40615
...@@ -3,12 +3,67 @@ ...@@ -3,12 +3,67 @@
namespace Bolt\Extension\Appolo\Tourinsoft; namespace Bolt\Extension\Appolo\Tourinsoft;
use Bolt\Extension\SimpleExtension; use Bolt\Extension\SimpleExtension;
use Bolt\Menu\MenuEntry;
/** /**
* ExtensionName extension class. * Tourinsoft extension class.
* *
* @author Your Name <you@example.com> * @author Your Name <you@example.com>
*/ */
class TourinsoftExtension extends SimpleExtension class TourinsoftExtension extends SimpleExtension
{ {
}
public function getFuck() {
/*dump($this->getConfig());*/
return 'Wazaaaaaa';
}
/**
* @return array
*/
protected function registerMenuEntries()
{
$menu = new MenuEntry('Tourinsoft', '');
$menu->setLabel('Api TourinSoft')
->setIcon('fa: fa-database')
->setPermission('settings');
return [
$menu,
];
}
/**
* Register Controller
* {@inheritdoc}
*/
protected function registerBackendControllers()
{
/*return [
'/tourinsoft' => new Controller\Backend\TourinsoftController($this->getConfig()),
];*/
}
/**
* {@inheritdoc}
*/
protected function registerTwigFunctions()
{
return [
'getFuck' => 'getFuck'
];
}
/**
* Register twig paths for application
*/
protected function registerTwigPaths()
{
return [
'templates' => ['namespace' => 'tourinsoft']
];
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment