Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #77 from michalkurzeja/sf4-compat
Browse files Browse the repository at this point in the history
[#SymfonyConHackday2017] SF4 compatibility update
  • Loading branch information
benji07 authored Dec 6, 2017
2 parents befa528 + 2b6a89d commit 7a51d48
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 2 deletions.
8 changes: 8 additions & 0 deletions DataCollector/AsseticDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ public function collect(Request $request, Response $response, \Exception $except
$this->data['collections'] = $collections;
}

/**
* Resets this data collector to its initial state.
*/
public function reset()
{
$this->data = ['display_in_wdt' => $this->data['display_in_wdt']];
}

/**
* Get the Assetic Assetic manager
*
Expand Down
8 changes: 8 additions & 0 deletions DataCollector/ContainerDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ public function collect(Request $request, Response $response, \Exception $except
$this->data['services'] = $services;
}

/**
* Resets this data collector to its initial state.
*/
public function reset()
{
$this->data = ['display_in_wdt' => $this->data['display_in_wdt']];
}

/**
* Returns the Parameters Information
*
Expand Down
8 changes: 8 additions & 0 deletions DataCollector/RoutingDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ public function collect(Request $request, Response $response, \Exception $except
$this->data['ressources'] = $ressources;
}

/**
* Resets this data collector to its initial state.
*/
public function reset()
{
$this->data = ['display_in_wdt' => $this->data['display_in_wdt']];
}

/**
* Returns the Amount of Routes
*
Expand Down
8 changes: 8 additions & 0 deletions DataCollector/TwigDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ public function collect(Request $request, Response $response, \Exception $except
$this->data['functions'] = $functions;
}

/**
* Resets this data collector to its initial state.
*/
public function reset()
{
$this->data = ['display_in_wdt' => $this->data['display_in_wdt']];
}

/**
* Get Twig Environment
*
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
}
],
"require": {
"symfony/framework-bundle": "~2.1|~3.0",
"symfony/twig-bundle": "~2.0|~3.0",
"symfony/framework-bundle": "~2.1|~3.0|~4.0",
"symfony/templating": "~2.0|~3.0|~4.0",
"symfony/twig-bundle": "~2.0|~3.0|~4.0",
"twig/twig": "~1.12|~2.0"
},
"autoload": {
Expand Down

0 comments on commit 7a51d48

Please sign in to comment.