Fabien Potencier
e45d5fa857
merged vicb:template-factorization
2011-04-26 14:38:47 +02:00
Artur Kotyrba
05698f66a2
[Templating] removed unused argument passed to setRendered() method
2011-04-25 22:58:23 +02:00
Pascal Borreli
8c0beea677
[Phpdoc] Cleaning/fixing
2011-04-23 15:18:47 +00:00
Victor Berchet
33dd89fd02
[Template cache warmers] Factorize common code
2011-04-23 11:24:28 +02:00
Eriksen Costa
589b0ab4ed
Merge branch 'master' into form-frameworkbundle-form-guessers-fix
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormGuessersPass.php
src/Symfony/Component/Form/MoneyField.php
2011-04-21 23:03:40 -03:00
Brikou CARRE
e898445b94
removed empty lines/trailing spaces
2011-04-15 21:12:02 +02:00
Henrik Bjørnskov
e687685f98
[Form] change FormView::setVar,getVar,getVars,hasVar to set,get,all,has
...
[Form] Fixed {get,set,has}Var references in templating php
[Form] Added getVars to FormView to ease usage in Twig. Also added some phpdoc and cleaned up the get method by adding a default value
[Form] Fix
[Form] Delete file generated by test
2011-04-15 15:25:37 +02:00
Bernhard Schussek
44af72bbf4
Merge remote branch 'symfony/master' into experimental
2011-04-14 15:04:59 +02:00
Bernhard Schussek
72b17cd67c
[Form] Renamed TemplateContext to FormView
2011-04-14 15:02:51 +02:00
Bernhard Schussek
c2dcebf6ea
[FrameworkBundle] Added test coverage for FormHelper and fixed various rendering bugs
2011-04-14 13:37:27 +02:00
Fabien Potencier
9cc340a262
fixed inconsistencies in file locator classes
2011-04-14 12:52:22 +02:00
Fabien Potencier
b32a7e935a
simplified code
2011-04-13 23:18:28 +02:00
Bernhard Schussek
8031ad77c8
Merge remote branch 'fabpot/form' into fabpot_merge
2011-04-13 15:58:15 +02:00
Fabien Potencier
0c93b6bbe4
Merge remote branch 'vicb/locate_template2'
...
* vicb/locate_template2:
[FrameworkBundle] Enforce templates instances of TemplateReferenceInterface
[FrameworkBundle] Add unit tests for the CacheTemplateLocator class
[FrameworkBundle] Add unit tests for the TemplateLocator class
[TwigBundle] Fix the cache warmer
[TwigBundle] Tweak cache warmer configuration
[FrameworkBundle] Fix resource inheritance in the template cache warmer
2011-04-13 13:38:11 +02:00
Fabien Potencier
d873f21f69
[FrameworkBundle] removed links in exceptions when the file does not exist (mostly useful because of shortcut notations for templates)
2011-04-12 15:23:02 +02:00
Fabien Potencier
b68624aa7f
[FrameworkBundle] tweaked regexp
2011-04-12 15:19:57 +02:00
Fabien Potencier
7f2294395c
[Form] reverted the templating part to be similar to what we have today
2011-04-11 16:42:51 +02:00
Victor Berchet
e254ff8cc6
Display template logical names in exception messages
2011-04-08 19:56:12 +02:00
Victor Berchet
e80a693cfe
[FrameworkBundle] Enforce templates instances of TemplateReferenceInterface
2011-04-08 18:54:19 +02:00
Victor Berchet
c45d5c89cc
[FrameworkBundle] Add unit tests for the CacheTemplateLocator class
2011-04-08 18:54:19 +02:00
Fabien Potencier
a230090537
removed some json_encode() calls to use the new getLogicalName() method instead
2011-04-08 17:28:27 +02:00
Martin Hason
6c4801945e
[FrameworkBundle] added getLogicalName() method to TemplateReference
2011-04-08 10:32:46 +02:00
Ryan Weaver
5ecf1cd1d1
[FrameworkBundle] Taking advantage of the known type of $template to render meaningfull information about the template
...
The $template variable is not type-hinted, but this is just because the `locate` method must follow the signature of the interface.
According to the PHPDoc, the $template variable is in fact an instance of TemplateReferenceInterface, meaning we can call getPath()
on it. The previous method of json_encode just returned two empty braces, at least in my experience.
2011-04-07 18:29:34 -05:00
Victor Berchet
170375a946
[Templating] Fix for getting the file link format from XDebug settings
2011-04-05 10:36:11 +02:00
Fabien Potencier
f232b3cdda
reverted Merge remote branch 'kriswallsmith/kernel/shorter-bundle-names'
2011-04-04 11:10:56 +02:00
Fabien Potencier
743592d81e
Revert "fixed remaining Bundle suffixes"
...
This reverts commit 315147c6c8
.
2011-04-04 11:08:56 +02:00
Kris Wallsmith
6c3f50a585
[FrameworkBundle] fixed interface and usage in RouterHelper
2011-04-01 20:58:17 -07:00
Fabien Potencier
315147c6c8
fixed remaining Bundle suffixes
2011-03-28 19:04:02 +02:00
Kris Wallsmith
ade83e2e80
updated codebase to use shorter bundle names
...
Controllers:
"BlogBundle:Post:show" is now "Blog:Post:show"
Templates:
"BlogBundle:Post:show.html.twig" is now "Blog:Post:show.html.twig"
Resources:
"@BlogBundle/Resources/config/blog.xml" is now "@Blog/Resources/config/blog.xml"
Doctrine:
"$em->find('BlogBundle:Post', $id)" is now "$em->find('Blog:Post', $id)"
2011-03-27 06:25:43 -07:00
Fabien Potencier
0c8ff92ecd
made the controller name in the WDT clickable
2011-03-18 16:09:21 +01:00
Fabien Potencier
005287ac88
Merge remote branch 'kriswallsmith/templating/asset-packages'
2011-03-16 16:18:45 +01:00
Christophe Coevoet
61abc3d01f
Added the global variable in PHP templates too
2011-03-16 13:11:29 +01:00
Victor Berchet
9e9a9a80eb
[FrameworkBunlde] CodeHelper tweaks
2011-03-11 09:47:59 +01:00
Kris Wallsmith
6904e0e1e2
[FrameworkBundle] implemented asset packages
2011-03-08 09:22:25 -08:00
Jordi Boggiano
75ba47751f
[FrameworkBundle] Added getFlashMessages() to the SessionHelper
2011-03-07 18:10:43 +01:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
aurelijus
218a9ae51e
Add cache warmed routers support to RouteHelper
2011-03-02 18:58:43 +02:00
Fabien Potencier
cdf6851eb3
fixed merge
2011-02-27 21:16:13 +01:00
Christophe Coevoet
92bfbf575c
Fixed CS
2011-02-27 20:56:29 +01:00
Pascal Borreli
2a6c5018ae
[FrameworkBundle] Removed useless else
2011-02-27 18:36:36 +01:00
Fabien Potencier
72cdb480ab
[FrameworkBundle] made CachedTemplateLocator fallback to the regular TemplateLocator if the template is not in the cache (to be able to use an absolute template)
2011-02-21 19:23:57 +01:00
Fabien Potencier
d94acd85f9
remove response as a service
...
The Response is not available in the DIC anymore.
When you need to create a response, create an instance of
Symfony\Component\HttpFoundation\Response instead.
As a side effect, the Controller::createResponse() and Controller::redirect()
methods have been removed and can easily be replaced as follows:
return $this->createResponse('content', 200, array('foo' => 'bar'));
return new Response('content', 200, array('foo' => 'bar'));
return $this->redirect($url);
return Response::createRedirect($url);
2011-02-21 17:36:04 +01:00
Victor Berchet
af81bcabf0
[Templating] Refactor the component
2011-02-14 21:11:44 +01:00
Fabien Potencier
5c905beb13
moved common configuration classes to a new Config component
2011-02-13 22:31:50 +01:00
hidenorigoto
82a8a3fb42
[WebProfilerBundle][FrameworkBundle]Fixed events panel to handle closures correctly
2011-02-10 15:32:04 +01:00
ornicar
803cc91b8b
[FrameworkBundle] Fix TemplateNameParser template name exception message
2011-02-07 00:45:46 +01:00
Fabien Potencier
cdff8b2bf8
[FrameworkBundle] fixed error message for template as an array
2011-02-06 20:22:57 +01:00
Bernhard Schussek
c468db5c5b
[Form] Merged classes FieldGroup and Form for simplicity
2011-02-01 15:27:12 +01:00
Victor Berchet
cd96c91447
json_encode() syntax (fix commit fb889a2eee
)
2011-01-27 16:37:25 +01:00
Fabien Potencier
7bd30398c6
[FrameworkBundle] moved some cache warmers
2011-01-27 12:22:32 +01:00