public function __construct(DatasourceInterface $datasource, FieldSet $fieldset, Dictionary $options = null) { $this->datasource = $datasource; $this->fieldset = $fieldset; $this->options = new Dictionary(); if ($options) { $this->options->concat($options); } $configurationLoader = ConfigurationLoader::getInstance(); $this->configuration = $configurationLoader->getConfiguration(); }
public function __construct(RendererInterface $tableRenderer, Dictionary $options = null) { $this->tableRenderer = $tableRenderer; $loader = new Twig_Loader_Filesystem($options->get('paths')->toArray()); $this->renderer = $twig = new Twig_Environment($loader, $options->toArray()); }