Like

On Tuesday, October 15, 2013, vmeyet wrote:

> In lib/log/sfAirbrakeLogger.class.php:
>
> > @@ -107,4 +107,17 @@ public static function registerEventCallback($callback) {
> >          }
> >          return false;
> >      }
> > +
> > +    /**
> > +     * Can be called to override the Sentry API key at any point in time
> > +     * Presents a lot of similarities with an ugly hack
> > +     *
> > +     * @param string $newApiKey
> > +     *
> > +     * @return string The previous key
> > +     */
> > +     public static function overrideApiKey($newApiKey)
> > +     {
> > +         return static::getConfiguration()->set('apiKey', $newApiKey);
>
> I learnt something today (the difference between static:: and self::),
> that's nice.
>
> (incidentally I also learned that learnt and learned are both valid when
> writing this comment)
>
> today was a good day. :p
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Work4Labs/w4l_symfony/pull/18/files#r6966063>
> .
>