for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NVBooster\PHPCRAssetsBundle\Admin;
use NVBooster\PHPCRAssetsBundle\Asset\JsAsset;
use Sonata\AdminBundle\Form\FormMapper;
/**
* JsAssetAdmin
*
* @author nvb <[email protected]>
*/
class JsAssetAdmin extends BaseAssetAdmin
{
* {@inheritDoc}
* @var string
protected $translationDomain = 'NvboosterPHPCRAssets';
protected $baseRouteName = 'admin_cmf_assets_jsasset';
protected $baseRoutePattern = '/cms/assets/jsasset';
* @return array
protected function getCodeMirrorParams()
return array(
'lineNumbers' => true,
'mode' => 'javascript'
);
}