This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Drupal\Core\Template\TwigReferenceFunction; | |
| use Drupal\Core\Template\TwigTemplate; | |
| use Drupal\Core\Template\TwigNodeExpressionGetAttrReference; | |
| use Drupal\Core\Template\TwigNodeExpressionNameReferenceEnd; | |
| use Drupal\Core\Template\TwigNodeExpressionNameReference; | |
| use Drupal\Core\Template\TwigReferenceNodeVisitor; | |
| function twig_change(&$context, $template, $val) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function loadUserByUsername($username) | |
| { | |
| $attributes = $this->container->get('security.context')->getToken()->getAttributes(); | |
| return new LtiUser($username, $attributes); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| ### Call the correct front controller. This is dependent on an environment variable being set | |
| ### in the virtual host configuration. SetEnv seems not to work, so here's an example with SetEnvIfNoCase: | |
| ### <Directory /path/to/application/web> | |
| ### SetEnvIfNoCase REQUEST_URI .* SYMFONY_ENV=dev | |
| ### </Directory> | |
| ### This will force the following rules to call the dev front controller. |