Skip to content
This repository

Jul 20, 2011

  1. Fabien Potencier

    [HttpFoundation] tagged public @api

    authored July 20, 2011

Jul 11, 2011

  1. Francis Besset

    Moved managing cookies of HeaderBag in ResponseHeaderBag

    By example, a cookie can't be set in a request

Jul 05, 2011

  1. Fabien Potencier

    removed usage of preg_match with the 'e' modifier

    authored July 05, 2011

May 15, 2011

  1. Fabien Potencier

    [HttpFoundation] force headers to be sorted in HeaderBag::__toString()

    authored May 15, 2011
  2. Fabien Potencier

    [HttpFoundation] fixed a warning

    authored May 15, 2011
  3. Fabien Potencier

    [HttpFoundation] tweaked HeaderBag::__toString() to ease debugging

    authored May 15, 2011
  4. Fabien Potencier

    [HttpFoundation] added HeaderBag::__toString()

    authored May 15, 2011

Apr 26, 2011

  1. Victor Berchet

    Make casting scalar to array consistent

    authored April 26, 2011

Mar 06, 2011

  1. Fabien Potencier

    replaced symfony-project.org by symfony.com

    authored March 06, 2011

Feb 27, 2011

  1. Pascal Borreli

    [HttpFoundation] Removed useless else

    authored February 27, 2011

Feb 12, 2011

  1. Hugo Hamon

    [HttpFoundation] fixed phpdoc

    authored February 11, 2011 fabpot committed February 12, 2011

Jan 31, 2011

  1. Fabien Potencier

    [HttpFoundation] made small optimizations

    authored January 30, 2011

Jan 23, 2011

  1. Bulat Shakirzyanov

    [HttFoundation] extracted FileBag, ServerBag, fixed HeaderBag::add(),…

    … updated Request test
    authored January 22, 2011 fabpot committed January 23, 2011

Jan 18, 2011

  1. blue-eyes

    normalized license messages in PHP files

    authored January 15, 2011 fabpot committed January 18, 2011

Jan 15, 2011

  1. Johannes

    better support for cookie handling, use native PHP function to set co…

    …okies
    authored January 15, 2011 fabpot committed January 15, 2011

Nov 25, 2010

  1. Fabien Potencier

    made some method name changes to have a better coherence throughout t…

    …he framework
    
    When an object has a "main" many relation with related "things" (objects,
    parameters, ...), the method names are normalized:
    
     * get()
     * set()
     * all()
     * replace()
     * remove()
     * clear()
     * isEmpty()
     * add()
     * register()
     * count()
     * keys()
    
    The classes below follow this method naming convention:
    
     * BrowserKit\CookieJar -> Cookie
     * BrowserKit\History -> Request
     * Console\Application -> Command
     * Console\Application\Helper\HelperSet -> HelperInterface
     * DependencyInjection\Container -> services
     * DependencyInjection\ContainerBuilder -> services
     * DependencyInjection\ParameterBag\ParameterBag -> parameters
     * DependencyInjection\ParameterBag\FrozenParameterBag -> parameters
     * DomCrawler\Form -> FormField
     * EventDispatcher\Event -> parameters
     * Form\FieldGroup -> Field
     * HttpFoundation\HeaderBag -> headers
     * HttpFoundation\ParameterBag -> parameters
     * HttpFoundation\Session -> attributes
     * HttpKernel\Profiler\Profiler -> DataCollectorInterface
     * Routing\RouteCollection -> Route
     * Security\Authentication\AuthenticationProviderManager -> AuthenticationProviderInterface
     * Templating\Engine -> HelperInterface
     * Translation\MessageCatalogue -> messages
    
    The usage of these methods are only allowed when it is clear that there is a
    main relation:
    
     * a CookieJar has many Cookies;
    
     * a Container has many services and many parameters (as services is the main
       relation, we use the naming convention for this relation);
    
     * a Console Input has many arguments and many options. There is no "main"
       relation, and so the naming convention does not apply.
    
    For many relations where the convention does not apply, the following methods
    must be used instead (where XXX is the name of the related thing):
    
     * get()      -> getXXX()
     * set()      -> setXXX()
     * all()      -> getXXXs()
     * replace()  -> setXXXs()
     * remove()   -> removeXXX()
     * clear()    -> clearXXX()
     * isEmpty()  -> isEmptyXXX()
     * add()      -> addXXX()
     * register() -> registerXXX()
     * count()    -> countXXX()
     * keys()
    authored November 23, 2010

Nov 21, 2010

  1. Thibault Duplessis

    [HttpFoundation] Rename HeaderBag::validateCookieName to HeaderBag::v…

    …alidateCookie
    authored November 21, 2010 fabpot committed November 21, 2010

Nov 18, 2010

  1. Fabien Potencier

    changed Cache-Control default value behavior

    The PHP native cache limiter feature has been disabled as this is now managed
    by the HeaderBag class directly instead (see below.)
    
    The HeaderBag class uses the following rules to define a sensible and
    convervative default value for the Response 'Cache-Control' header:
    
     * If no cache header is defined ('Cache-Control', 'ETag', 'Last-Modified',
       and 'Expires'), 'Cache-Control' is set to 'no-cache';
    
     * If 'Cache-Control' is empty, its value is set to "private, max-age=0,
       must-revalidate";
    
     * But if at least one 'Cache-Control' directive is set, and no 'public' or
       'private' directives have been explicitely added, Symfony2 adds the
       'private' directive automatically (except when 's-maxage' is set.)
    
    So, remember to explicitly add the 'public' directive to 'Cache-Control' when
    you want shared caches to store your application resources:
    
        // The Response is private by default
        $response->setEtag($etag);
        $response->setLastModified($date);
        $response->setMaxAge(10);
    
        // Change the Response to be public
        $response->setPublic();
    
        // Set cache settings in one call
        $response->setCache(array(
            'etag'          => $etag,
            'last_modified' => $date,
            'max_age'       => 10,
            'public'        => true,
        ));
    authored November 10, 2010

Nov 03, 2010

  1. Johannes

    fixes a bug where in most cases cookies with path / were not set prop…

    …erly
    authored October 30, 2010 fabpot committed November 03, 2010

Oct 28, 2010

  1. Jean-François PHILIPPE

    [HttpFoundation] updated get() signature to get($key, $default = null…

    …, $first = true)
    
    This is more consistent with the get() method of ParameterBag
    authored October 27, 2010 fabpot committed October 28, 2010

Oct 18, 2010

  1. Kris Wallsmith

    Removed all those spaces after @author that were bothering me so…

    authored October 17, 2010 fabpot committed October 18, 2010

Aug 26, 2010

  1. Fabien Potencier

    [HttpFoundation] added a keys() method to *Bag classes

    authored August 26, 2010

Aug 20, 2010

  1. Fabien Potencier

    renamed Symfony\Components to Symfony\Component

    authored August 20, 2010
Something went wrong with that request. Please try again.