first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use WPML\Core\Twig_Environment;
|
||||
|
||||
/**
|
||||
* @author OnTheGo Systems
|
||||
*/
|
||||
class WPML_Twig_Template implements IWPML_Template_Service {
|
||||
private $twig;
|
||||
|
||||
/**
|
||||
* WPML_Twig_Template constructor.
|
||||
*
|
||||
* @param Twig_Environment $twig
|
||||
*/
|
||||
public function __construct( Twig_Environment $twig ) {
|
||||
$this->twig = $twig;
|
||||
}
|
||||
|
||||
public function show( $model, $template ) {
|
||||
return $this->twig->render( $template, $model );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user