This file contains 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 | |
namespace Service\Translation; | |
use Common\Config; | |
use Common\Log; | |
use GMO\Common\Collections\ArrayCollection; | |
use GMO\Common\String; | |
use Pimple; | |
use Symfony\Component\Finder\Finder; | |
use Symfony\Component\Translation\Translator as BaseTranslator; |
This file contains 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 | |
if (!isResource()) { | |
return false; | |
} | |
require_once __DIR__ . '/index.php'; | |
function isResource() { | |
$path = $_SERVER['SCRIPT_NAME']; |
This file contains 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 | |
namespace GMO\Common\Web\Twig; | |
use GMO\Common\Collections\ArrayCollection; | |
use Symfony\Component\HttpFoundation\Response; | |
class TwigResponse extends Response { | |
public function setTemplate($template) { | |
$this->template = $template; |
NewerOlder