Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[DependencyInjection] fixed PhpDumper + as_files + new lines in string arguments/properties/etc of Definitions #24517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[DI] PhpDumper. Make generated code compatible with coding standards
  • Loading branch information
Strate committed Oct 12, 2017
commit e6e649b7dc69522be076300dedce305e09d4e6f1
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@ private function doExport($value)
if (is_string($value) && false !== strpos($value, "\n")) {
$cleanParts = explode("\n", $value);
$cleanParts = array_map(function ($part) { return var_export($part, true); }, $cleanParts);
$export = implode(' . "\n" . ', $cleanParts);
$export = implode('."\n".', $cleanParts);
} else {
$export = var_export($value, true);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
Array
(
[ContainerQug0xcu/removed-ids.php] => <?php
[ContainerAx0roru/removed-ids.php] => <?php

return array(
'Psr\\Container\\ContainerInterface' => true,
'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
);

[ContainerQug0xcu/getFooService.php] => <?php
[ContainerAx0roru/getFooService.php] => <?php

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;

// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
// Returns the public 'foo' shared service.

return $this->services['foo'] = new \Foo('string with' . "\n" . 'new line');
return $this->services['foo'] = new \Foo('string with'."\n".'new line');

[ContainerQug0xcu/getFoo2Service.php] => <?php
[ContainerAx0roru/getFoo2Service.php] => <?php

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;

// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
// Returns the public 'foo2' shared service.

return $this->services['foo2'] = new \Foo('string with' . "\n" . 'nl');
return $this->services['foo2'] = new \Foo('string with'."\n".'nl');

[ContainerQug0xcu/Container.php] => <?php
[ContainerAx0roru/Container.php] => <?php

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
Expand All @@ -41,7 +41,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
*
* @final since Symfony 3.3
*/
class ContainerQug0xcu extends Container
class ContainerAx0roru extends Container
{
private $parameters;
private $targetDirs = array();
Expand Down Expand Up @@ -93,14 +93,14 @@ class ContainerQug0xcu extends Container

// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.

if (!class_exists(ContainerQug0xcu::class, false)) {
require __DIR__.'/ContainerQug0xcu/Container.php';
if (!class_exists(ContainerAx0roru::class, false)) {
require __DIR__.'/ContainerAx0roru/Container.php';
}

if (!class_exists(ProjectServiceContainer::class, false)) {
class_alias(ContainerQug0xcu::class, ProjectServiceContainer::class, false);
class_alias(ContainerAx0roru::class, ProjectServiceContainer::class, false);
}

return new ContainerQug0xcu();
return new ContainerAx0roru();

)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.