Skip to content

Instantly share code, notes, and snippets.

View mantis's full-sized avatar

Mantis Development mantis

View GitHub Profile
@mantis
mantis / build.ps1
Created February 19, 2017 15:20
Windows Build File for admin-on-rest
<#
.SYNOPSIS
Manages the build of admin-on-rest on windows
.DESCRIPTION
This powershell script attempts to implement the linux makefile for admin-on-rest for those users who may wish to
develop the system on a windows based operating system.
Examples:
1) To install required modules
./make.ps1 -install
@@ -1461,18 +1461,26 @@ function twig_get_attribute(Twig_Environment $env, Twig_Source $source, $object,
if ($object instanceof Twig_Template) {
throw new Twig_Error_Runtime('Accessing Twig_Template attributes is forbidden.');
}
+ static $extensionSandbox = null;
+ if ($extensionSandbox === null) {
+ if ($env->hasExtension('Twig_Extension_Sandbox'))
+ $extensionSandbox = true;