Hello again,

I'm currently trying to evaluate Symfony 2 and I'm working on a little
sandbox site to get my head around things, but I'm a bit worried by
the documentation, I can't seem to find much in the way of tutorials
and the symfony-reloaded docs tend to assume too much prior knowledge.
Is this something which is likely to be improved upon once it's ready
for public consumption (end of March isn't it?).

For example, I have a user class I generate completely via doctrine
I'm trying to hook it into the login system.

I made it implement AccountInterface, it already has the salt,
username and password fields and I hacked a function to return the
roles etc for now. Have the security settings setup to use that class
and so forth.

The next step just says about using..

$user = $container->get('security.context')->getUser();

.. It doesn't say where, so I assumed I could do this within one of my
bundle controllers but I can't for the life of me figure out how to
get the container object or the security.context using what I have.
Any ideas?

It would be great if the Sensio HelloBundle (or some other tutorial
bundle) had authentication and forms (for creating and editing
objects) already included for picking apart. I can hopefully put my
little sandbox one online for others to pick apart, but I need to get
unstuck myself first!

Thanks in advance.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to