Hi all.

I want to make a "superaction", that is an action who must be executed before 
any other actions at controller. I remember something like this in Symfony 1.x.

Other possibility is using the constructor, but at the controller's constructor 
point we haven't "$this->container" present. I've tried to call:

// myController.php

class myController extends ContainerAware
{
        public function __construct()
        {
                // We have no container at this point, and we want it.
                parent::__construct();

                // Error: no constructor at parent
                // No container, container only present at xxxAction functions.
        }

        // ... Actions ...
}

Without success, there is no constructor at ContainerAware class.

¿Any idea about the way to write a "superaction"?

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