Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Action execute twice!
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John Poison  
View profile  
 More options Nov 4 2012, 2:22 pm
From: John Poison <truefiresn...@gmail.com>
Date: Sun, 4 Nov 2012 11:22:40 -0800 (PST)
Local: Sun, Nov 4 2012 2:22 pm
Subject: Action execute twice!

I have simple action

    public function testAction()
    {
        /**
         * @var \Symfony\Component\HttpKernel\Log\LoggerInterface $logger
         */
        $logger = $this->get('logger');
        $logger->err('test Action!');
        return new \Symfony\Component\HttpFoundation\Response('123');
    }

test:
    pattern:  /roadmap/test/test
    defaults: { _controller: DomArticleBundle:Default:test }

I cleared log before visiting page.
Then I did visit it

And my log:
cat  ../../tmp/domashniy.lo/logs/dev.log  | grep "test Action"
[2012-11-04 23:17:17] app.ERROR: test Action! [] []
[2012-11-04 23:17:18] app.ERROR: test Action! [] []

WTF? Why it executes two times?

When i look into profiler it shows only one time. But in fact it's twice!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gábor Fási  
View profile  
 More options Nov 4 2012, 5:24 pm
From: Gábor Fási <m...@maerlyn.eu>
Date: Sun, 4 Nov 2012 23:24:18 +0100
Local: Sun, Nov 4 2012 5:24 pm
Subject: Re: [Symfony2] Action execute twice!

Make sure you have no empty asset links.
On Nov 4, 2012 9:14 PM, "John Poison" <truefiresn...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »