Most of the hard work is done by @nateevans https://gist.github.com/nateevans/9958390
Thank you!
Requires Twig ^1.2 | ^2.0
{% extends 'knp_menu.html.twig' %}
<?php | |
namespace AppBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\Extension\Core\Type\PasswordType; | |
use Symfony\Component\Form\Extension\Core\Type\RepeatedType; | |
use Symfony\Component\Form\Extension\Core\Type\SubmitType; | |
use Symfony\Component\Form\FormBuilderInterface; |
{"nodes": [{"group": "humanas", "index": 0, "name": "ADMINISTRAÇÃO"}, | |
{"group": "humanas", "index": 1, "name": "ANTROPOLOGIA"}, | |
{"group": "humanas", "index": 2, "name": "ARQUEOLOGIA"}, | |
{"group": "biologicas", "index": 3, "name": "BIOLOGIA ANIMAL"}, | |
{"group": "saude", "index": 4, "name": "BIOLOGIA APLICADA À SAÚDE"}, | |
{"group": "biologicas", "index": 5, "name": "BIOLOGIA VEGETAL"}, | |
{"group": "biologicas", "index": 6, "name": "BIOQUÍMICA E FISIOLOGIA"}, | |
{"group": "exatas", "index": 7, "name": "BIOTECNOLOGIA INDUSTRIAL"}, | |
{"group": "saude", "index": 8, "name": "CIRURGIA"}, | |
{"group": "exatas", "index": 9, "name": "CIÊNCIA DA COMPUTAÇÃO"}, |
Most of the hard work is done by @nateevans https://gist.github.com/nateevans/9958390
Thank you!
Requires Twig ^1.2 | ^2.0
{% extends 'knp_menu.html.twig' %}
<IfModule mod_rewrite.c> | |
Options -MultiViews | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.php [QSA,L] | |
</IfModule> | |
<IfModule !mod_rewrite.c> | |
<IfModule mod_alias.c> | |
RedirectMatch 302 ^/$ /index.php/ |
<?php | |
define('SLACK_WEBHOOK', 'https://hooks.slack.com/services/xxx/yyy/zzz'); | |
define('TELEGRAM_BOT_TOKEN', '...'); | |
define('TELEGRAM_CHAT_ID', '12345'); | |
function slack($txt) { | |
$msg = array('text' => $txt); | |
$c = curl_init(SLACK_WEBHOOK); | |
curl_setopt($c, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false); |
FROM node:7.4-alpine | |
RUN mkdir /app | |
WORKDIR /app | |
ADD . /app/ | |
RUN npm install | |
EXPOSE 8080 |
<script src="https://yastatic.net/jquery/3.1.0/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.1.0.min.js"><\/script>')</script> |
<?php | |
namespace AppBundle\DependencyInjection; | |
use Symfony\Component\Config\Definition\Builder\TreeBuilder; | |
use Symfony\Component\Config\Definition\ConfigurationInterface; | |
class Configuration implements ConfigurationInterface | |
{ | |
public function getConfigTreeBuilder() |
<?php | |
namespace AppBundle\EventListener; | |
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; | |
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; |