CodeExplorer generateServiceFiles example
if ($ids =
array_keys($ids)) { sort($ids);
$c = "<?php\n\nreturn [\n";
foreach ($ids as $id) { $c .= ' '.
$this->
doExport($id)." => true,\n";
} $files['removed-ids.php'
] =
$c."];\n";
} if (!
$this->inlineFactories
) { foreach ($this->
generateServiceFiles($services) as $file =>
$c) { $files[$file] =
$fileStart.
$c;
} foreach ($proxyClasses as $file =>
$c) { $files[$file] = "<?php\n".
$c;
} } $code .=
$this->
endClass();
if ($this->inlineFactories
) { foreach ($proxyClasses as $c) { if ($ids =
array_keys($ids)) { sort($ids);
$c = "<?php\n\nreturn [\n";
foreach ($ids as $id) { $c .= ' '.
$this->
doExport($id)." => true,\n";
} $files['removed-ids.php'
] =
$c."];\n";
} if (!
$this->inlineFactories
) { foreach ($this->
generateServiceFiles($services) as $file =>
[$c,
$preload]) { $files[$file] =
sprintf($fileTemplate,
substr($file, 0, -4
),
$c);
if ($preload) { $preloadedFiles[$file] =
$file;
} } foreach ($proxyClasses as $file =>
$c) { $files[$file] = "<?php\n".
$c;
$preloadedFiles[$file] =
$file;
} } if ($ids =
array_keys($ids)) { sort($ids);
$c = "<?php\n\nreturn [\n";
foreach ($ids as $id) { $c .= ' '.
$this->
doExport($id)." => true,\n";
} $files['removed-ids.php'
] =
$c."];\n";
} if (!
$this->inlineFactories
) { foreach ($this->
generateServiceFiles($services) as $file =>
[$c,
$preload]) { $files[$file] =
sprintf($fileTemplate,
substr($file, 0, -4
),
$c);
if ($preload) { $preloadedFiles[$file] =
$file;
} } foreach ($proxyClasses as $file =>
$c) { $files[$file] = "<?php\n".
$c;
$preloadedFiles[$file] =
$file;
} }