Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on May 10, 2011
  1. @johnwards

    [Validator] Adding support for Closure in CallbackValidator

    johnwards authored
    Usage:
    $formBuilder = $this->get('form.factory')
                ->createBuilder('form');
    $formBuilder->setAttribute('validation_constraint', new Callback(array("methods"=>array(
        'validate' => function ($data, $context) use ($elements) {
           // logic to add violations depending on the elements
        }
    ))));
Commits on Mar 22, 2011
  1. @johnwards
  2. @johnwards
  3. @johnwards

    [Form] Coding conventions

    johnwards authored
  4. @johnwards

    [Form] The declaration and initialization (constructor) of the variab…

    johnwards authored
    …les should be in the same class.
  5. @johnwards
  6. @johnwards
  7. @johnwards
Commits on Mar 21, 2011
  1. @johnwards
  2. @johnwards
  3. @johnwards
  4. @johnwards
  5. @johnwards
  6. @johnwards
  7. @johnwards
  8. @johnwards
Commits on Mar 18, 2011
  1. @johnwards @webmozart
  2. @johnwards @webmozart

    [FrameworKBundle] Fixed TraceableEventDispatcher to use parent::getLi…

    johnwards authored webmozart committed
    …steners() because parent::$listeners is now private. Passed event name to listenerToString()
  3. @johnwards @webmozart
  4. @johnwards @webmozart

    [FrameworkBundle] Fixed typo in ProfileListener

    johnwards authored webmozart committed
  5. @johnwards @webmozart
  6. @johnwards @webmozart
Commits on Feb 14, 2011
  1. @johnwards @fabpot

    [Serializer] added the ability to add attributes to nodes using an ar…

    johnwards authored fabpot committed
    …ray key begining with @
    
    Example:
    
    array(
    	'foo-bar' => array(
    		'@id' => 1,
    		'@name' => 'Bar'
    	),
    	Foo' => array(
    		'Bar' => "Test",
    		'@Type' => 'test'
    	)
    )
    
    Parse XML now creates @ attribites for the array.
    
    $rss = array(
       "channel" => array(
         "title" => "Test RSS",
         "description" => "Test description",
         "item" => array(
           0 => array(
             "title" => "Test Title 1",
             "link" => "http://foo.com"
           ),
           1 => array(
             "title" => "Test Title 2",
             "link" => "http://bar.com"
           )
         )
       )
    );
    
    <channel>
        <title>Test RSS</title>
        <description>Test description</description>
        <item>
            <title>Test Title 1</title>
            <link>http://foo.com</link>
        </item>
        <item>
            <title>Test Title 2</title>
            <link>http://bar.com</title>
        </item>
    </channel>
Something went wrong with that request. Please try again.