No, it is an old shortcut function that can be useful when you embed PHP
inside a yaml string:
foo: <?php echo 'foo' ?>
bar: baz
The previous snippet won't work because you need to add a \n at the end:
foo: <?php echo 'foo'."\n" ?>
bar: baz
or
foo: <?php echoln('foo') ?>
bar: baz
So, for BC, we cannot remove it, even if I don't document it anymore.
Fabien
--
Fabien Potencier
Sensio CEO - symfony lead developer
sensiolabs.com | symfony-project.org | fabien.potencier.org
Tél: +33 1 40 99 80 80
Kris Wallsmith wrote:
> There is a function defined at the bottom of the sfYaml file, echoln,
> that does not appear to be used anywhere in the YAML component. Can this
> function be removed?
>
> Kris
>
> --
>
> *Kris Wallsmith* | Community Manager
> [email protected]
> <mailto:[email protected]>
> Portland, Oregon USA
>
> http://twitter.com/kriswallsmith
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---