Comments (6)
The new version can be found here, it includes also changes vor PHP Version 7.4
https://github.com/kaamaa/APYDataGridBundle
from apydatagridbundle.
I finally got the APYDataGridBundle running with Symfony 5.2.3
Julio Montoya did 99% of the work, by preparing the Datagridbundle for Twig > 3.0
Please use jmontoyaa / APYDataGridBundle : master
In addition three steps are required:
Please add the following Statement to service.xml
</service>
<service id="%grid.class%" alias="grid" public="true">
</service>
Using the console you can check if the the grid service is available:
php bin/console cache:clear
php bin/console debug:autowiring --all
As Templating is not available any more, you need to replace in Grid.PHP / getGridResponse
Old: return $this->container->get('templating')->renderResponse($view, $parameters, $response);
New: return new Response($this->container->get('twig')->render($view, $parameters, $response));
Finally you need to exchange in Configuration.php / getConfigTreeBuilder
Old: ->scalarNode('theme')->defaultValue('APYDataGridBundle::blocks.html.twig')->end()
New: ->scalarNode('theme')->defaultValue('@APYDataGrid/blocks.html.twig')->end()
Then run
php bin/console cache:clear
again and start you application.
My Controller function looks like this
public function GridAction(RequestStack $requestStack, grid $grid)
{
$request = $requestStack->getCurrentRequest();
As I'm not familiär with GitHub past "Composer require" statements, I can't upload my version.
Cheers
Martin
from apydatagridbundle.
Hello. Its very helpfull sugges.
Me also need goto newest symfony version.
@kaamaa you are need todo same replacing on twig in GridManager. Also needed to remove symfony/templating depency from composer.json.
After it please add version tag.
from apydatagridbundle.
Hello,
I've been working on this branch https://github.com/APY/APYDataGridBundle/tree/feature/sf5-compat to have a working Bundle with latest version on Symfony 5.
All tests are green and I've created a real life example that also allows to test the bundle locally : https://github.com/npotier/apydatagrid-demo
I've created a PR here : #1063
Feel free to tell me what you think about it.
from apydatagridbundle.
Hello.
Symfony 5 support has been released on the repository, on the tag 4.0
it is now available on packagist.
Feel free to test this new version on your projects and to create issues if needed
from apydatagridbundle.
Hello.
Is there a way to use twig3 with the 4.0?
Currently: "apy/datagrid-bundle 4.0 requires twig/twig ^2.10".
from apydatagridbundle.
Related Issues (20)
- The alias doesn't work to filter the added columns (aggregated column here)
- Yaml configuration for entities HOT 1
- Maintenance & futur of the bundle HOT 16
- ORDER BY on a column from a fetch joined to-many HOT 1
- When creating a RowAction, the route parameter name should be dynamic. HOT 1
- defaultfilter with multiple values and filter=select ? HOT 2
- Travis builds are failing due to composer memory limit HOT 7
- composer require apy/datagrid-bundle fails with symfony 5 HOT 1
- Problem with Export + MassAction
- Filtering on 'not equals to' should return rows with 'null/empty' values
- Routes gets called two times when user filters column HOT 1
- Bugfix: Trying to access array offset on value of type null (strict types) HOT 8
- PHPExcel is deprecated use PHPSpreadsheet instead HOT 1
- Defining Export and others as Services
- export fails when using custom twigs HOT 5
- Attempted to call an undefined method named "getSQLResultCasing" HOT 2
- Symfony 6.0 HOT 7
- allow false for Column Translation Domain
- function lower(uuid) does not exist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apydatagridbundle.