snipt

Ctrl+h for KB shortcuts

YAML

Symfony 1.x : Increase timeout

1
2
3
4
5
6
7
# In apps/APP_NAME/config/factories.yml

all:
  user:
    class: myUser
    param:
      timeout: 7200 # 2h
https://snipt.net/embed/42b3f7ddbc2c4e2c1660b1521779fefd/
/raw/42b3f7ddbc2c4e2c1660b1521779fefd/
42b3f7ddbc2c4e2c1660b1521779fefd
yaml
YAML
7
2016-12-15T03:40:59
True
False
True
Sep 03, 2012 at 12:37 PM
/api/public/snipt/46648/
symfony-1x-increase-timeout
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># In apps/APP_NAME/config/factories.yml</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="l l-Scalar l-Scalar-Plain">all</span><span class="p p-Indicator">:</span> </span><span id="L-4"><a name="L-4"></a> <span class="l l-Scalar l-Scalar-Plain">user</span><span class="p p-Indicator">:</span> </span><span id="L-5"><a name="L-5"></a> <span class="l l-Scalar l-Scalar-Plain">class</span><span class="p p-Indicator">:</span> <span class="l l-Scalar l-Scalar-Plain">myUser</span> </span><span id="L-6"><a name="L-6"></a> <span class="l l-Scalar l-Scalar-Plain">param</span><span class="p p-Indicator">:</span> </span><span id="L-7"><a name="L-7"></a> <span class="l l-Scalar l-Scalar-Plain">timeout</span><span class="p p-Indicator">:</span> <span class="l l-Scalar l-Scalar-Plain">7200</span> <span class="c1"># 2h</span> </span></pre></div> </td></tr></table>
Symfony, timeout