for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AnimeDb package
*
* @package AnimeDb
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011, Peter Gribanov
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
*/
namespace AnimeDb\Bundle\MyAnimeListSyncBundle\Service;
use AnimeDb\Bundle\CatalogBundle\Plugin\Setting\Setting as SettingPlugin;
use Knp\Menu\ItemInterface;
* Setting plugin
* @package AnimeDb\Bundle\MyAnimeListSyncBundle\Service
class Setting extends SettingPlugin
{
* @return string
public function getName()
return 'my-anime-list';
}
public function getTitle()
return 'MyAnimeList Sync';
* @param ItemInterface $item
* @return ItemInterface
public function buildMenu(ItemInterface $item)
$item->addChild('MyAnimeList', ['route' => 'my_anime_list_sync_settings'])
->setLinkAttribute('class', 'icon-label icon-label-plugin-my-anime-list');