src/Kunstmaan/AdminBundle/Controller/SettingsController.php
public function bundleVersionAction()
    {
        $this->denyAccessUnlessGranted('ROLE_SUPER_ADMIN');

        $versionChecker = $this->container->get('kunstmaan_admin.versionchecker');
        if (!$versionChecker->isEnabled()) {
            return array('data' => null);
        }

        $data = null;

        try {
            $data = $versionChecker->check();
        } catch (\Exception $e) {
            $this->container->get('logger')->error(
                $e->getMessage(),
                array('exception' => $e)
            );
        }

        return array(
            'data' => $data,
        );
    }
public function bundleVersionAction()
    {
        $this->denyAccessUnlessGranted('ROLE_SUPER_ADMIN');

        $versionChecker = $this->container->get('kunstmaan_admin.versionchecker');
        if (!$versionChecker->isEnabled()) {
            return array('data' => null);
        }

        $data = null;

        try {
            $data = $versionChecker->check();
        } catch (\Exception $e) {
            $this->container->get('logger')->error(
                $e->getMessage(),
                array('exception' => $e)
            );
        }

        return array(
            'data' => $data,
        );
    }
public function bundleVersionAction ( ) { $ this -> denyAccessUnlessGranted ( 'ROLE_SUPER_ADMIN' ) ; $ versionChecker = $ this -> container -> get ( 'kunstmaan_admin.versionchecker' ) ; if ( ! $ versionChecker -> isEnabled ( ) ) { return array ( 'data' => null ) ; } $ data = null ; try { $ data = $ versionChecker -> check ( ) ; } catch ( \ Exception $ e ) { $ this -> container -> get ( 'logger' ) -> error ( $ e -> getMessage ( ) , array ( 'exception' => $ e ) ) ; } return array ( 'data' => $ data , ) ; }
Show bundles version update information

@Route("/bundle-version", name="KunstmaanAdminBundle_settings_bundle_version")
@Template("KunstmaanAdminBundle:Settings:bundleVersion.html.twig")

@throws AccessDeniedException

@return array
Show bundles version update information