<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
stormdelta / latex-encoder-annotation-bundle example snippets
//app/AppKernel.php
use ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
...
new StormDelta\LatexEncoder\AnnotationBundle\StormDeltaLatexEncoderAnnotationBundle(),
...
);
...
}
//src/AppBundle/Entity/LatexEntity.php
namespace AppBundle\Entity\LatexEntity;
use StormDelta\LatexEncoder\AnnotationBundle\Annotation\LatexEncoderAnnotation as LatexEncode;
class LatexEntity
{
/**
* @LatexEncode
*/
$variable;
}
//src/AppBundle/Controller/DefaultController.php
namespace AppBundle\Controller;
use ...
class DefaultController extends Controller
{
...
public function indexAction(...)
{
$entity = new LatexEntity();
...
$entity = $this->get('stormdelta.latexencoder.driver')->encode($entity);
...
return array('entity' => $entity);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.