diff --git a/Resources/views/blocks.html.twig b/Resources/views/blocks.html.twig
index 5d816126..d1b8d50e 100644
--- a/Resources/views/blocks.html.twig
+++ b/Resources/views/blocks.html.twig
@@ -43,7 +43,7 @@
{% block grid_no_data %}{{ grid.noDataMessage|default('No data')|trans|raw }}
{% endblock grid_no_data %}
{# --------------------------------------------------- grid_no_result ------------------------------------------------- #}
{% block grid_no_result %}
-{% spaceless %}
+{% apply spaceless %}
{% set nbColumns = 0 %}
{% for column in grid.columns %}
{% if column.visible(grid.isReadyForExport) %}
@@ -53,7 +53,7 @@
{{ grid.noResultMessage|default('No result')|trans|raw }} |
-{% endspaceless %}
+{% endapply %}
{% endblock grid_no_result %}
{# --------------------------------------------------- grid_titles -------------------------------------------------- #}
{% block grid_titles %}
@@ -62,7 +62,7 @@
{% set translation_domain = column.translationDomain %}
{% if column.visible(grid.isReadyForExport) %}
-1) %} style="width:{{ column.size }}px;"{% endif %}>
- {%- spaceless %}
+ {% apply spaceless %}
{% if column.type == 'massaction' %}
{% else %}
@@ -88,7 +88,7 @@
{{ columnTitle }}
{% endif %}
{% endif %}
- {% endspaceless -%}
+ {% endapply -%}
|
{% endif %}
{% endfor %}
@@ -128,7 +128,7 @@
{% block grid_rows %}
{% for row in grid.rows %}
{% set last_row = loop.last %}
- {% spaceless %}
+ {% apply spaceless %}
{% set gridColumns %}
{% for column in grid.columns %}
{% if column.visible(grid.isReadyForExport) %}
@@ -138,7 +138,7 @@
{% endset %}
{{ gridColumns }}
- {% endspaceless %}
+ {% endapply %}
{% else %}
{{ grid_no_result(grid) }}
@@ -158,16 +158,16 @@
{% endblock grid_pager %}
{# ---------------------------------------------------- grid_pager_totalcount -------------------------------------------------- #}
{% block grid_pager_totalcount %}
-{{ '%count% Results, ' | transchoice(grid.totalCount, {'%count%': grid.totalCount}) }}
+{{ '%count% Results, ' | trans({'%count%': grid.totalCount}) }}
{% endblock grid_pager_totalcount %}
{# ---------------------------------------------------- grid_pager_selectpage -------------------------------------------------- #}
{% block grid_pager_selectpage %}
{{ 'Page'|trans }}
-{% spaceless %}
+{% apply spaceless %}
= grid.pageCount-1 %}disabled="disabled"{% endif %} onclick="return {{ grid.hash }}_nextPage();"/> {{ 'of %count%'|trans({ '%count%' : grid.pageCount }) }}
-{% endspaceless %}
+{% endapply %}
{% endblock grid_pager_selectpage %}
{# ---------------------------------------------------- grid_pager_results_perpage -------------------------------------------------- #}
{% block grid_pager_results_perpage %}
@@ -188,7 +188,7 @@
{{ 'Deselect all'|trans }}
- {% spaceless %}
+ {% apply spaceless %}
{{ 'Action'|trans }}
@@ -200,13 +200,13 @@
- {% endspaceless %}
+ {% endapply %}
{% endblock grid_actions %}
{# --------------------------------------------------- grid_exports ------------------------------------------------- #}
{% block grid_exports %}
- {% spaceless %}
+ {% apply spaceless %}
{{ 'Export'|trans }}
- {% endspaceless %}
+ {% endapply %}
{% endblock grid_exports %}
{# --------------------------------------------------- grid_tweaks ------------------------------------------------- #}
{% block grid_tweaks %}
- {% spaceless %}
+ {% apply spaceless %}
{{ 'Tweaks'|trans }}
- {% endspaceless %}
+ {% endapply %}
{% endblock grid_tweaks %}
{# ------------------------------------------------ grid_column_actions_cell --------------------------------------------- #}
@@ -299,7 +299,7 @@
{% endblock grid_column_type_simple_array_cell %}
{# ------------------------------------------- grid_column_cell ---------------------------------------- #}
{% block grid_column_cell %}
-{%- spaceless %}
+{% apply spaceless %}
{% if column.filterable and column.searchOnClick %}
{% set sourceValue = sourceValue is defined ? sourceValue : row.field(column.id) %}
{{ value }}
@@ -308,7 +308,7 @@
{% else %}
{{ value|escape(column.safe)|raw }}
{% endif %}
-{% endspaceless -%}
+{% endapply -%}
{% endblock grid_column_cell %}
{# -------------------------------------------- grid_column_operator --------------------------------------- #}
{% block grid_column_operator %}
@@ -328,9 +328,15 @@
{% set btweOperator = constant('APY\\DataGridBundle\\Grid\\Column\\Column::OPERATOR_BTWE') %}
{% set isNullOperator = constant('APY\\DataGridBundle\\Grid\\Column\\Column::OPERATOR_ISNULL') %}
{% set isNotNullOperator = constant('APY\\DataGridBundle\\Grid\\Column\\Column::OPERATOR_ISNOTNULL') %}
-{% set op = column.data.operator is defined ? column.data.operator : column.defaultOperator %}
-{% set from = column.data.from is defined ? column.data.from : null %}
-{% set to = column.data.to is defined ? column.data.to : null %}
+{% if column %}
+ {% set op = column.defaultOperator %}
+ {% set from = null %}
+ {% set to = null %}
+{% else %}
+ {% set op = column.data.operator is defined ? column.data.operator : column.defaultOperator %}
+ {% set from = column.data.from is defined ? column.data.from : null %}
+ {% set to = column.data.to is defined ? column.data.to : null %}
+{% endif %}
{{ grid_column_operator(column, grid, op, submitOnChange) }}
@@ -345,9 +351,15 @@
{% set btweOperator = constant('APY\\DataGridBundle\\Grid\\Column\\Column::OPERATOR_BTWE') %}
{% set isNullOperator = constant('APY\\DataGridBundle\\Grid\\Column\\Column::OPERATOR_ISNULL') %}
{% set isNotNullOperator = constant('APY\\DataGridBundle\\Grid\\Column\\Column::OPERATOR_ISNOTNULL') %}
-{% set op = column.data.operator is defined ? column.data.operator : column.defaultOperator %}
-{% set from = column.data.from is defined ? column.data.from : null %}
-{% set to = column.data.to is defined ? column.data.to : null %}
+{% if column %}
+ {% set op = column.defaultOperator %}
+ {% set from = null %}
+ {% set to = null %}
+{% else %}
+ {% set op = column.data.operator is defined ? column.data.operator : column.defaultOperator %}
+ {% set from = column.data.from is defined ? column.data.from : null %}
+ {% set to = column.data.to is defined ? column.data.to : null %}
+{% endif %}
{% set multiple = column.selectMulti %}
{% set expanded = column.selectExpanded %}
diff --git a/Tests/Action/MassActionTest.php b/Tests/Action/MassActionTest.php
index 71da8c44..de93769c 100644
--- a/Tests/Action/MassActionTest.php
+++ b/Tests/Action/MassActionTest.php
@@ -1,6 +1,6 @@
getContainer();
+ //$container = self::$container;
+ //$this->container = $container;
+ $self = $this;
+ $this->container = $this->createMock(Container::class);
+ $this->container->expects($this->any())
+ ->method('get')
+ ->will($this->returnCallback(function ($param) use ($self) {
+ switch ($param) {
+ case 'router':
+ return $self->createMock(RouterInterface::class);
+ break;
+ case 'request_stack':
+ $request = new Request([], [], ['key' => 'value']);
+ $session = new Session();
+ $request->setSession($session);
+ $requestStack = new RequestStack();
+ $requestStack->push($request);
+ return $requestStack;
+ break;
+ case 'security.authorization_checker':
+ return $self->createMock(AuthorizationCheckerInterface::class);
+ break;
+ }
+ }));
+
+ $this->factory = $this->createMock(GridFactoryInterface::class);
+ $this->builder = new GridBuilder($this->container, $this->factory, 'name');
+ }
+
public function testAddUnexpectedType()
{
$this->expectException(UnexpectedTypeException::class);
@@ -140,38 +186,6 @@ public function testGetGrid()
$this->assertInstanceOf(Grid::class, $this->builder->getGrid());
}
- /**
- * {@inheritdoc}
- */
- protected function setUp()
- {
- $self = $this;
-
- $this->container = $this->createMock(Container::class);
- $this->container->expects($this->any())
- ->method('get')
- ->will($this->returnCallback(function ($param) use ($self) {
- switch ($param) {
- case 'router':
- return $self->createMock(RouterInterface::class);
- break;
- case 'request_stack':
- $request = new Request([], [], ['key' => 'value']);
- $requestStack = new RequestStack();
- $requestStack->push($request);
-
- return $requestStack;
- break;
- case 'security.authorization_checker':
- return $self->createMock(AuthorizationCheckerInterface::class);
- break;
- }
- }));
-
- $this->factory = $this->createMock(GridFactoryInterface::class);
- $this->builder = new GridBuilder($this->container, $this->factory, 'name');
- }
-
protected function tearDown()
{
$this->factory = null;
diff --git a/Tests/Grid/GridConfigBuilderTest.php b/Tests/Grid/GridConfigBuilderTest.php
index 1092b68c..38511baa 100644
--- a/Tests/Grid/GridConfigBuilderTest.php
+++ b/Tests/Grid/GridConfigBuilderTest.php
@@ -1,6 +1,6 @@
'value']);
+ $session = new Session();
+ $request->setSession($session);
$requestStack = new RequestStack();
$requestStack->push($request);
diff --git a/Tests/Grid/GridManagerTest.php b/Tests/Grid/GridManagerTest.php
index 4c03200d..c6a77d06 100644
--- a/Tests/Grid/GridManagerTest.php
+++ b/Tests/Grid/GridManagerTest.php
@@ -1,14 +1,13 @@
router
->method('generate')
- ->with($route, null)
+ ->with($route, [])
->willReturn($url);
$this->grid->initialize();
@@ -737,9 +738,8 @@ public function testGetRowActions()
public function testSetExportTwigTemplateInstance()
{
$templateName = 'templateName';
-
$template = $this
- ->getMockBuilder(\Twig_Template::class)
+ ->getMockBuilder(TemplateWrapper::class)
->disableOriginalConstructor()
->getMock();
$template
@@ -767,6 +767,10 @@ public function testSetExportStringTemplate()
->method('set')
->with($this->anything(), [Grid::REQUEST_QUERY_TEMPLATE => $template]);
+
+ $this->arrangeGridSourceDataLoadedWithEmptyRows();
+ $this->arrangeGridPrimaryColumn();
+ $this->grid->handleRequest($this->request);
$this->grid->setTemplate($template);
}
@@ -800,7 +804,7 @@ public function testReturnTwigTemplate()
$templateName = 'templateName';
$template = $this
- ->getMockBuilder(\Twig_Template::class)
+ ->getMockBuilder(TemplateWrapper::class)
->disableOriginalConstructor()
->getMock();
$template
@@ -2593,6 +2597,9 @@ public function testRaiseExceptionIfGetNonExistentTweak()
$tweakId = 'aValidTweakId';
$tweak = ['filters' => [], 'order' => 'columnId', 'page' => 1, 'limit' => 50, 'export' => 1, 'massAction' => 1];
+ $routeUrl = 'http://www.foo.com';
+ $this->grid->setRouteUrl($routeUrl);
+
$this->grid->addTweak('title', $tweak, $tweakId, 'group');
$this->grid->getTweak($nonExistentTweak);
@@ -2603,8 +2610,12 @@ public function testGetTweak()
$title = 'aTweak';
$id = 'aValidTweakId';
$group = 'tweakGroup';
+
+ $routeUrl = 'http://www.foo.com';
+ $this->grid->setRouteUrl($routeUrl);
+
$tweak = ['filters' => [], 'order' => 'columnId', 'page' => 1, 'limit' => 50, 'export' => 1, 'massAction' => 1];
- $tweakUrl = sprintf('?[%s]=%s', Grid::REQUEST_QUERY_TWEAK, $id);
+ $tweakUrl = $routeUrl.sprintf('?[%s]=%s', Grid::REQUEST_QUERY_TWEAK, $id);
$this->grid->addTweak($title, $tweak, $id, $group);
@@ -2615,11 +2626,14 @@ public function testGetTweak()
public function testGetTweaksByGroupExcludingThoseWhoDoNotHaveTheGroup()
{
+ $routeUrl = 'http://www.foo.com';
+ $this->grid->setRouteUrl($routeUrl);
+
$title = 'aTweak';
$id = 'aValidTweakId';
$group = 'tweakGroup';
$tweak = ['filters' => [], 'order' => 'columnId', 'page' => 1, 'limit' => 50, 'export' => 1, 'massAction' => 1];
- $tweakUrl = sprintf('?[%s]=%s', Grid::REQUEST_QUERY_TWEAK, $id);
+ $tweakUrl = $routeUrl.sprintf('?[%s]=%s', Grid::REQUEST_QUERY_TWEAK, $id);
$tweakResult = [$id => array_merge(['title' => $title, 'id' => $id, 'group' => $group, 'url' => $tweakUrl], $tweak)];
$this->grid->addTweak($title, $tweak, $id, $group);
diff --git a/Tests/Grid/Mapping/ColumnTest.php b/Tests/Grid/Mapping/ColumnTest.php
index 1a875e8e..a1b9b89e 100644
--- a/Tests/Grid/Mapping/ColumnTest.php
+++ b/Tests/Grid/Mapping/ColumnTest.php
@@ -1,6 +1,6 @@
method('getQuery')
->willReturn($query);
-
+
$this
->manager
->method('createQueryBuilder')
@@ -1529,4 +1529,4 @@ public function getSubCol()
{
return $this->subCol;
}
-}
\ No newline at end of file
+}
diff --git a/Tests/Grid/Source/VectorTest.php b/Tests/Grid/Source/VectorTest.php
index 1d77d829..639a2fc4 100644
--- a/Tests/Grid/Source/VectorTest.php
+++ b/Tests/Grid/Source/VectorTest.php
@@ -1,6 +1,6 @@
*/
-class DataGridExtension extends Twig_Extension implements Twig_Extension_GlobalsInterface
+class DataGridExtension extends AbstractExtension implements GlobalsInterface
{
const DEFAULT_TEMPLATE = 'APYDataGridBundle::blocks.html.twig';
/**
- * @var Twig_Template[]
+ * @var TemplateWrapper[]
*/
protected $templates = [];
@@ -90,7 +91,7 @@ public function setPagerFanta(array $def)
/**
* @return array
*/
- public function getGlobals()
+ public function getGlobals(): array
{
return [
'grid' => null,
@@ -112,41 +113,41 @@ public function getGlobals()
public function getFunctions()
{
return [
- new Twig_SimpleFunction('grid', [$this, 'getGrid'], [
+ new TwigFunction('grid', [$this, 'getGrid'], [
'needs_environment' => true,
'is_safe' => ['html'],
]),
- new Twig_SimpleFunction('grid_html', [$this, 'getGridHtml'], [
+ new TwigFunction('grid_html', [$this, 'getGridHtml'], [
'needs_environment' => true,
'is_safe' => ['html'],
]),
- new Twig_SimpleFunction('grid_url', [$this, 'getGridUrl'], [
+ new TwigFunction('grid_url', [$this, 'getGridUrl'], [
'is_safe' => ['html'],
]),
- new Twig_SimpleFunction('grid_filter', [$this, 'getGridFilter'], [
+ new TwigFunction('grid_filter', [$this, 'getGridFilter'], [
'needs_environment' => true,
'is_safe' => ['html'],
]),
- new Twig_SimpleFunction('grid_column_operator', [$this, 'getGridColumnOperator'], [
+ new TwigFunction('grid_column_operator', [$this, 'getGridColumnOperator'], [
'needs_environment' => true,
'is_safe' => ['html'],
]),
- new Twig_SimpleFunction('grid_cell', [$this, 'getGridCell'], [
+ new TwigFunction('grid_cell', [$this, 'getGridCell'], [
'needs_environment' => true,
'is_safe' => ['html'],
]),
- new Twig_SimpleFunction('grid_search', [$this, 'getGridSearch'], [
+ new TwigFunction('grid_search', [$this, 'getGridSearch'], [
'needs_environment' => true,
'is_safe' => ['html'],
]),
- new Twig_SimpleFunction('grid_pager', [$this, 'getGridPager'], [
+ new TwigFunction('grid_pager', [$this, 'getGridPager'], [
'needs_environment' => true,
'is_safe' => ['html'],
]),
- new Twig_SimpleFunction('grid_pagerfanta', [$this, 'getPagerfanta'], [
+ new TwigFunction('grid_pagerfanta', [$this, 'getPagerfanta'], [
'is_safe' => ['html'],
]),
- new Twig_SimpleFunction('grid_*', [$this, 'getGrid_'], [
+ new TwigFunction('grid_*', [$this, 'getGrid_'], [
'needs_environment' => true,
'is_safe' => ['html'],
]),
@@ -171,14 +172,14 @@ public function initGrid($grid, $theme = null, $id = '', array $params = [])
/**
* Render grid block.
*
- * @param Twig_Environment $environment
- * @param \APY\DataGridBundle\Grid\Grid $grid
- * @param string $theme
- * @param string $id
+ * @param Environment $environment
+ * @param Grid $grid
+ * @param string $theme
+ * @param string $id
*
* @return string
*/
- public function getGrid(Twig_Environment $environment, $grid, $theme = null, $id = '', array $params = [], $withjs = true)
+ public function getGrid(Environment $environment, $grid, $theme = null, $id = '', array $params = [], $withjs = true)
{
$this->initGrid($grid, $theme, $id, $params);
@@ -191,37 +192,37 @@ public function getGrid(Twig_Environment $environment, $grid, $theme = null, $id
/**
* Render grid block (html only).
*
- * @param Twig_Environment $environment
- * @param \APY\DataGridBundle\Grid\Grid $grid
- * @param string $theme
- * @param string $id
+ * @param Environment $environment
+ * @param Grid $grid
+ * @param string $theme
+ * @param string $id
*
* @return string
*/
- public function getGridHtml(Twig_Environment $environment, $grid, $theme = null, $id = '', array $params = [])
+ public function getGridHtml(Environment $environment, $grid, $theme = null, $id = '', array $params = [])
{
return $this->getGrid($environment, $grid, $theme, $id, $params, false);
}
/**
- * @param Twig_Environment $environment
+ * @param Environment $environment
* @param string $name
* @param unknown $grid
*
* @return string
*/
- public function getGrid_(Twig_Environment $environment, $name, $grid)
+ public function getGrid_(Environment $environment, $name, $grid)
{
return $this->renderBlock($environment, 'grid_' . $name, ['grid' => $grid]);
}
/**
- * @param Twig_Environment $environment
+ * @param Environment $environment
* @param unknown $grid
*
* @return string
*/
- public function getGridPager(Twig_Environment $environment, $grid)
+ public function getGridPager(Environment $environment, $grid)
{
return $this->renderBlock($environment, 'grid_pager', ['grid' => $grid, 'pagerfanta' => $this->pagerFantaDefs['enable']]);
}
@@ -229,14 +230,14 @@ public function getGridPager(Twig_Environment $environment, $grid)
/**
* Cell Drawing override.
*
- * @param Twig_Environment $environment
- * @param \APY\DataGridBundle\Grid\Column\Column $column
+ * @param Environment $environment
+ * @param Column $column
* @param \APY\DataGridBundle\Grid\Row $row
- * @param \APY\DataGridBundle\Grid\Grid $grid
+ * @param Grid $grid
*
* @return string
*/
- public function getGridCell(Twig_Environment $environment, $column, $row, $grid)
+ public function getGridCell(Environment $environment, $column, $row, $grid)
{
$value = $column->renderCell($row->getField($column->getId()), $row, $this->router);
@@ -264,13 +265,13 @@ public function getGridCell(Twig_Environment $environment, $column, $row, $grid)
/**
* Filter Drawing override.
*
- * @param Twig_Environment $environment
- * @param \APY\DataGridBundle\Grid\Column\Column $column
- * @param \APY\DataGridBundle\Grid\Grid $grid
+ * @param Environment $environment
+ * @param Column $column
+ * @param Grid $grid
*
* @return string
*/
- public function getGridFilter(Twig_Environment $environment, $column, $grid, $submitOnChange = true)
+ public function getGridFilter(Environment $environment, $column, $grid, $submitOnChange = true)
{
$id = $this->names[$grid->getHash()];
@@ -294,21 +295,21 @@ public function getGridFilter(Twig_Environment $environment, $column, $grid, $su
/**
* Column Operator Drawing override.
*
- * @param Twig_Environment $environment
- * @param \APY\DataGridBundle\Grid\Column\Column $column
- * @param \APY\DataGridBundle\Grid\Grid $grid
+ * @param Environment $environment
+ * @param Column $column
+ * @param Grid $grid
*
* @return string
*/
- public function getGridColumnOperator(Twig_Environment $environment, $column, $grid, $operator, $submitOnChange = true)
+ public function getGridColumnOperator(Environment $environment, $column, $grid, $operator, $submitOnChange = true)
{
return $this->renderBlock($environment, 'grid_column_operator', ['grid' => $grid, 'column' => $column, 'submitOnChange' => $submitOnChange, 'op' => $operator]);
}
/**
- * @param string $section
- * @param \APY\DataGridBundle\Grid\Grid $grid
- * @param \APY\DataGridBundle\Grid\Column\Column $param
+ * @param string $section
+ * @param Grid $grid
+ * @param Column $param
*
* @return string
*/
@@ -335,7 +336,7 @@ public function getGridUrl($section, $grid, $param = null)
}
/**
- * @param Twig_Environment $environment
+ * @param Environment $environment
* @param unknown $grid
* @param unknown $theme
* @param string $id
@@ -343,7 +344,7 @@ public function getGridUrl($section, $grid, $param = null)
*
* @return string
*/
- public function getGridSearch(\Twig_Environment $environment, $grid, $theme = null, $id = '', array $params = [])
+ public function getGridSearch(Environment $environment, $grid, $theme = null, $id = '', array $params = [])
{
$this->initGrid($grid, $theme, $id, $params);
@@ -375,7 +376,7 @@ public function getPagerfanta($grid)
/**
* Render block.
*
- * @param Twig_Environment $environment
+ * @param Environment $environment
* @param string $name
* @param array $parameters
*
@@ -383,7 +384,7 @@ public function getPagerfanta($grid)
*
* @return string
*/
- protected function renderBlock(Twig_Environment $environment, $name, $parameters)
+ protected function renderBlock(Environment $environment, $name, $parameters)
{
foreach ($this->getTemplates($environment) as $template) {
if ($template->hasBlock($name, [])) {
@@ -397,12 +398,12 @@ protected function renderBlock(Twig_Environment $environment, $name, $parameters
/**
* Has block.
*
- * @param Twig_Environment $environment
+ * @param Environment $environment
* @param $name string
*
* @return bool
*/
- protected function hasBlock(Twig_Environment $environment, $name)
+ protected function hasBlock(Environment $environment, $name)
{
foreach ($this->getTemplates($environment) as $template) {
/** @var $template Twig_Template */
@@ -417,18 +418,18 @@ protected function hasBlock(Twig_Environment $environment, $name)
/**
* Template Loader.
*
- * @param Twig_Environment $environment
+ * @param Environment $environment
*
* @throws \Exception
*
- * @return Twig_Template[]
+ * @return TemplateWrapper[]
*/
- protected function getTemplates(Twig_Environment $environment)
+ protected function getTemplates(Environment $environment)
{
if (empty($this->templates)) {
- if ($this->theme instanceof Twig_Template) {
+ if ($this->theme instanceof TemplateWrapper) {
$this->templates[] = $this->theme;
- $this->templates[] = $environment->loadTemplate($this->defaultTemplate);
+ $this->templates[] = $environment->load($this->defaultTemplate);
} elseif (is_string($this->theme)) {
$this->templates = $this->getTemplatesFromString($environment, $this->theme);
} elseif ($this->theme === null) {
@@ -442,20 +443,17 @@ protected function getTemplates(Twig_Environment $environment)
}
/**
- * @param Twig_Environment $environment
- * @param unknown $theme
+ * @param Environment $environment
+ * @param string $theme
*
- * @return array|Twig_Template[]
+ * @return array
*/
- protected function getTemplatesFromString(Twig_Environment $environment, $theme)
+ protected function getTemplatesFromString(Environment $environment, $theme)
{
$this->templates = [];
- $template = $environment->loadTemplate($theme);
- while ($template instanceof \Twig_Template) {
- $this->templates[] = $template;
- $template = $template->getParent([]);
- }
+ $template = $environment->load($theme);
+ $this->templates[] = $template;
return $this->templates;
}
diff --git a/composer.json b/composer.json
index d0038c62..8cf3b915 100644
--- a/composer.json
+++ b/composer.json
@@ -17,30 +17,34 @@
{
"name": "Evan Owens",
"email": "eaowens@gmail.com"
+ },
+ {
+ "name": "Nicolas Potier",
+ "email": "contact@acseo.fr"
}
],
"require": {
- "php": ">=5.6",
- "symfony/form": "~2.8|~3.0|^4.0",
- "symfony/dependency-injection": "~2.8|~3.0|^4.0",
- "symfony/config": "~2.8|~3.0|^4.0",
- "symfony/http-foundation": "~2.8|~3.0|^4.0",
- "symfony/http-kernel": "~2.8|~3.0|^4.0",
- "symfony/options-resolver": "~2.8|~3.0|^4.0",
- "symfony/security": "~2.8|~3.0|^4.0",
- "symfony/serializer": "~2.8|~3.0|^4.0",
- "twig/twig": ">=1.5.0"
+ "php": ">=7.2",
+ "symfony/form": "~3.0|^4.0|^5.0",
+ "symfony/dependency-injection": "~3.0|^4.0|^5.0",
+ "symfony/config": "~3.0|^4.0|^5.0",
+ "symfony/http-foundation": "~3.0|^4.0|^5.0",
+ "symfony/http-kernel": "~3.0|^4.0|^5.0",
+ "symfony/options-resolver": "~3.0|^4.0|^5.0",
+ "symfony/security-guard": "~3.0|^4.0|^5.0",
+ "symfony/serializer": "~3.0|^4.0|^5.0",
+ "twig/twig": "^2.10"
},
"require-dev": {
- "symfony/framework-bundle": "~2.8|~3.0|^4.0",
- "symfony/browser-kit": "~2.8|~3.0|^4.0",
- "symfony/templating": "~2.8|~3.0|^4.0",
- "symfony/expression-language": "~2.8|~3.0|^4.0",
+ "symfony/framework-bundle": "~3.0|^4.0|^5.0",
+ "symfony/browser-kit": "~3.0|^4.0|^5.0",
+ "symfony/templating": "~3.0|^4.0|^5.0",
+ "symfony/expression-language": "~3.0|^4.0|^5.0",
"phpunit/phpunit": "~5.7",
"friendsofphp/php-cs-fixer": "^2.0",
- "satooshi/php-coveralls": "^1.0",
+ "php-coveralls/php-coveralls": "^2.0",
"doctrine/orm": "~2.4,>=2.4.5",
- "doctrine/mongodb-odm": "^1.1.5"
+ "doctrine/mongodb-odm": "^2.0"
},
"suggest": {
"ext-intl": "Translate the grid",