I am looking through properties of $kernel, $loader, $request and $response but cannot find anything related to controller and action that were actually called as a result of accessing specific URL. Is there a way to find out this info inside app.php, without manual analysis of route configuration files?
            Asked
            
        
        
            Active
            
        
            Viewed 48 times
        
    0
            
            
         
    
    
        Vadik
        
- 101
- 
                    Maybe you're looking for this http://stackoverflow.com/questions/7096546/how-to-get-current-route-in-symfony-2 – Satevg Jan 20 '15 at 11:28
- 
                    As I understand, that question is about finding out current route from inside a specific controller. The problem is that `app.php` is not a controller of ordinary sense, and there is no `$this` there. – Vadik Jan 20 '15 at 11:32
- 
                    3Why in app.php? You shall never edit – Emii Khaos Jan 20 '15 at 11:50
- 
                    It is not intended to be used on production servers or elsewhere, just for educational purposes. – Vadik Jan 20 '15 at 11:55
- 
                    For educational purposes look at this documentation page: http://symfony.com/doc/current/cookbook/service_container/event_listener.html – Alex Jan 20 '15 at 12:10
- 
                    You can use the console to get info about routes and controllers – acontell Jan 20 '15 at 12:13
- 
                    1All of this information should be available on the Request object – Scriptable Jan 20 '15 at 20:24