Commit Graph

4231 Commits

Author SHA1 Message Date
Christophe Coevoet
0ed6d04a5f [MonologBundle] Moved the handlers to the Bridge namespace 2011-05-07 10:35:19 +02:00
Kris Wallsmith
9e19cac3c0 [AsseticBundle] rearranged execute() method 2011-05-06 19:16:32 -07:00
Kris Wallsmith
547610a631 [AsseticBundle] moved debug flag to object property 2011-05-06 19:13:07 -07:00
Kris Wallsmith
918ece8baf [AsseticBundle] moved asset manager to object property 2011-05-06 19:11:56 -07:00
Kris Wallsmith
a11f18687b [AsseticBundle] moved base path to object property 2011-05-06 17:23:13 -07:00
Kris Wallsmith
f3b077a0dd [Form] removed a bunch of unused use statements 2011-05-06 14:07:16 -07:00
Drew Butler
dea5b26c3f Method exists does not work if you append the () to the method name, thus this never words for objects that actually have the __toString method. Removed the erroneous () so that this works as it appears to have been intended. 2011-05-06 13:20:29 -07:00
Fabien Potencier
d1c6e44082 Merge remote branch 'stof/firephp'
* stof/firephp:
  [MonologBundle] Fixed CS
  [MonologBundle] Fixed the handling of subrequests in FirePHPHandler
2011-05-06 22:14:25 +02:00
Fabien Potencier
c98bf4ff94 Merge remote branch 'Seldaek/serializer'
* Seldaek/serializer:
  [Serializer] CS fixes
  [Serializer] Split supports in supportsNormalization and supportsDenormalization
  [Serializer] Add support for Traversable objects
  Fixed docs typo
  [Serializer] updated SerializerInterface
2011-05-06 22:13:18 +02:00
Fabien Potencier
8043230bd6 Merge remote branch 'stof/doctrine_mapping'
* stof/doctrine_mapping:
  [DoctrineBundle] Removed orm reference in DoctrineAbstractBundle
2011-05-06 22:12:30 +02:00
Christophe Coevoet
e3ae374b47 [DoctrineBundle] Removed orm reference in DoctrineAbstractBundle 2011-05-06 21:53:40 +02:00
Jordi Boggiano
b9a2eb66e9 [Serializer] CS fixes 2011-05-06 19:37:13 +02:00
Jordi Boggiano
ded30a2937 [Serializer] Split supports in supportsNormalization and supportsDenormalization 2011-05-06 19:36:56 +02:00
Jordi Boggiano
919f16a7d6 [Serializer] Add support for Traversable objects 2011-05-06 19:04:39 +02:00
Jordi Boggiano
7a06421cb1 Fixed docs typo 2011-05-06 19:04:22 +02:00
Jordi Boggiano
d6afe63d2a Merge branch 'serializerLight' of http://github.com/schmittjoh/symfony into serializer 2011-05-06 18:39:02 +02:00
Christophe Coevoet
0704bc348b [MonologBundle] Fixed CS 2011-05-06 18:02:32 +02:00
Christophe Coevoet
5afe7d20a6 [MonologBundle] Fixed the handling of subrequests in FirePHPHandler 2011-05-06 18:01:38 +02:00
Jordi Boggiano
43484c21a6 [FrameworkBundle] Do not override the session storage for test 2011-05-06 17:04:37 +02:00
Jordi Boggiano
36aa7b0d70 [HttpFoundation] Remove warnings when session id isn't given 2011-05-06 16:25:44 +02:00
Fabien Potencier
f1f379b031 [Finder] simplified code 2011-05-06 14:16:23 +02:00
Johannes Schmitt
ec1199eda7 [Serializer] updated SerializerInterface 2011-05-06 13:01:19 +02:00
Fabien Potencier
3e21e07570 Merge remote branch 'schmittjoh/config'
* schmittjoh/config:
  [Config] some exception improvements
2011-05-06 12:38:12 +02:00
Fabien Potencier
62c0b10b88 [FrameworkBundle] prevented search engine indexing on exception pages 2011-05-06 12:33:37 +02:00
Fabien Potencier
f23044f63b Merge remote branch 'ptheg/master'
* ptheg/master:
  Search engines should not indexing Profiler
2011-05-06 12:31:49 +02:00
Fabien Potencier
dfd5b653cb [DoctrineBundle] changed mapping file suffix from .orm.dcm.yml to .orm.yml 2011-05-06 11:23:00 +02:00
Fabien Potencier
0cdd6ca4e2 [DoctrineBundle] added --path option to doctrine:generate:entities 2011-05-06 11:19:19 +02:00
Geyer Pierre
daeedb5705 Search engines should not indexing Profiler 2011-05-06 07:58:35 +02:00
Johannes Schmitt
486ecdc6a6 [Config] some exception improvements 2011-05-05 19:43:08 +02:00
Fabien Potencier
d9299e930b [DoctrineBundle] changed mapping directory
From Resources/config/ to Resources/config/doctrine
From doctrine.orm.dcm.xml to mapping.orm.dcm.xml
2011-05-05 18:12:21 +02:00
Fabien Potencier
3f69333acb [HttpKernel] refactored the ErrorHandler class 2011-05-05 08:53:16 +02:00
Fabien Potencier
ca3c5e652e moved ErrorHandler management to the distributions 2011-05-05 08:53:13 +02:00
Fabien Potencier
0f0e5817b1 [HttpKernel] added a Kernel::init() method 2011-05-05 08:44:36 +02:00
Johannes Schmitt
362b7264d1 [Security][HttpFoundation] splits Request::hasSession() into hasSession(), and hasPreviousSession()
This closes #774, and fixes #772.
2011-05-05 08:38:07 +02:00
Fabien Potencier
aba8f1e180 [ClassLoader] added a debug class loader 2011-05-05 08:28:12 +02:00
Johannes Schmitt
c3084050a0 [SecurityBundle] added some tests 2011-05-05 08:20:35 +02:00
Johannes Schmitt
f787a2a748 Merge branch 'acl' of https://github.com/IamPersistent/symfony into security 2011-05-05 08:06:31 +02:00
Fabien Potencier
fe9ef5c68b [Routing] fixed deep nested route collections (closes #770) 2011-05-04 23:29:47 +02:00
Fabien Potencier
36bcfcc5ee Merge remote branch 'bschussek/form'
* bschussek/form:
  [Form] CSRF fields are not included in the children of a FormView anymore if the view is not the root
  [Form] FormView::offsetUnset() is now supported. It was possible anyway using getChildren() and setChildren().
  [Form] Split the option "modifiable" of the "collection" type into "allow_add" and "allow_delete"
  [Form] Added test for last commit by kriswallsmith and improved dealing with original names
  [Form] Fixed variable scope when entering nested form helpers
  [Form] Added tests for blocks/templates in the format _<ID>_(widget|row|label|...)
  [Form] updated listener to check that data is an array
2011-05-04 22:13:33 +02:00
Fabien Potencier
b7c8442068 [DoctrineBundle] made Doctrine metadata configuration easier
You can now configure your Doctrine metadata in one single file named 'doctrine':

  Resources/config/doctrine.orm.dcm.yml
  Resources/config/doctirne.orm.dcm.xml

You can still use one file per entity, but the directory has changed (see the UPDATE file)
2011-05-04 19:58:48 +02:00
Fabien Potencier
ec226cd4bc [DoctrineBundle] fixed doctrine:generate:entities 2011-05-04 19:38:36 +02:00
Fabien Potencier
c200b42e89 Merge remote branch 'kriswallsmith/http/forwarded-secure'
* kriswallsmith/http/forwarded-secure:
  [HttpFoundation] added support for X-Forwarded-Port request header
2011-05-04 19:12:32 +02:00
Kris Wallsmith
ae46150bc8 [HttpFoundation] added support for X-Forwarded-Port request header 2011-05-04 09:56:34 -07:00
Fabien Potencier
e150ffd699 Merge remote branch 'Bart00/patch-1'
* Bart00/patch-1:
  Change "zou moeten" to "moet", ("zou moeten" implies that the problem is not so severe and was translated from english too literally) Also  fixes some typo's
2011-05-04 18:51:26 +02:00
Bernhard Schussek
74cca63938 [Form] CSRF fields are not included in the children of a FormView anymore if the view is not the root 2011-05-04 18:27:20 +02:00
Bernhard Schussek
173beeba74 [Form] FormView::offsetUnset() is now supported. It was possible anyway using getChildren() and setChildren(). 2011-05-04 18:21:49 +02:00
Bernhard Schussek
3cc5d9f4cd [Form] Split the option "modifiable" of the "collection" type into "allow_add" and "allow_delete" 2011-05-04 17:29:59 +02:00
Bernhard Schussek
bf1dfbbe99 [Form] Added test for last commit by kriswallsmith and improved dealing with original names
The form component should now guarantee to always pass an UploadedFile object to your model. There you can call getOriginalName() to retrieve the original name of the uploaded file. For security reasons, the real file name is a generated hash value.
2011-05-04 17:04:44 +02:00
Fabien Potencier
86d0ddb4e3 [DoctrineBundle] split Registry::getEntityManager() in two methods
Resetting an entity manager has a lot of consequences and the developer should
be aware of that. So, instead of implicitly reset an entity manager when it is
closed, the developer should reset it by hand if he thinks that this is
possible:

    $em = $this->get('registry')->getEntityManager();
    $em->getConnection()->beginTransaction(); // suspend auto-commit
    try {
        //... do some work
    } catch (Exception $e) {
        $em->getConnection()->rollback();
        $em->close();

        $this->get('registry')->resetEntityManager();
    }

    // you will get a new one
    $em = $this->get('registry')->getEntityManager();
2011-05-04 16:23:47 +02:00
Bernhard Schussek
4c6f26f008 Merge remote branch 'kriswallsmith/form/fix-upload-fix' into kris_merge 2011-05-04 15:51:20 +02:00
Bernhard Schussek
eb50d766da [Form] Fixed variable scope when entering nested form helpers
The consequence of this commit is that variables are accessible that have been passed to a surrounding form helper.

Example template:

{% block my_widget_label %}
    <label>{{ label }}
{% endblock %}

{% block my_widget_row %}
    {# It is not necessary to explicitely pass through the label variable #}
    {{ form_label(form) }}
    {{ form_widget(form) }}
{% endblock %}

Example usage:

{{ form_row(form.mywidget, { 'label': 'My Widget' }) }}
2011-05-04 15:40:15 +02:00
Bernhard Schussek
38098604af [Form] Added tests for blocks/templates in the format _<ID>_(widget|row|label|...) 2011-05-04 15:33:51 +02:00
Daniel Holmes
dd692c0203 [Form] fixed transformation failed exception 2011-05-04 05:51:03 -07:00
Bart00
f9940b4175 Change "zou moeten" to "moet", ("zou moeten" implies that the problem is not so severe and was translated from english too literally)
Also  fixes some typo's
2011-05-04 05:11:50 -07:00
Fabien Potencier
2e5bd42be3 Merge remote branch 'hollodk/master'
* hollodk/master:
  Made some better translation.
  First sample of translation.
2011-05-04 13:00:33 +02:00
Michael Holm
dc58b79e58 Made some better translation. 2011-05-04 12:47:06 +02:00
Fabien Potencier
ba3785896f Merge remote branch 'schmittjoh/di'
* schmittjoh/di:
  [DependencyInjection] fixes a bug when requesting a definition that uses property injection
2011-05-04 12:05:06 +02:00
Fabien Potencier
b752e31b66 Merge remote branch 'lenar/translation'
* lenar/translation:
  added translation for Estonian
2011-05-04 11:46:05 +02:00
Fabien Potencier
0331501580 [DoctrineBundle] fixed some configuration options 2011-05-04 11:35:14 +02:00
lenar
1cfed9e24e added translation for Estonian 2011-05-04 12:20:22 +03:00
Fabien Potencier
736948887d Merge remote branch 'lenar/doctrinebundle'
* lenar/doctrinebundle:
  fix variable names
2011-05-04 10:55:25 +02:00
Fabien Potencier
f7808de3a8 [DoctrineBundle] moved more DIC definition into orm.xml 2011-05-04 10:53:05 +02:00
lenar
1301995cdc fix variable names 2011-05-04 11:11:38 +03:00
Fabien Potencier
6d334289ee [BrowserKit] fixed a weird behavior where a PHP process returns a successful exit code, but the PHP scripts actually died 2011-05-04 09:08:05 +02:00
Fabien Potencier
17aa0ed0ed changed the default httpOnly value for cookie for better security out of the box 2011-05-04 08:44:59 +02:00
Fabien Potencier
8b83b9847b Merge remote branch 'wtfzdotnet/patch-1'
* wtfzdotnet/patch-1:
  Some changes to the translation of "should" -> "zou moeten", "must" -> "moeten".
2011-05-04 08:05:01 +02:00
Michael Holm
8be22f19d7 First sample of translation. 2011-05-04 01:59:48 +02:00
Johannes Schmitt
2c287676fb [DependencyInjection] fixes a bug when requesting a definition that uses property injection 2011-05-03 23:46:02 +02:00
Fabien Potencier
c7fddca891 replaced some url..code by rawurl..code 2011-05-03 23:06:55 +02:00
wtfzdotnet
898019559a Some changes to the translation of "should" -> "zou moeten", "must" -> "moeten". 2011-05-03 14:06:33 -07:00
Fabien Potencier
e8838e51a6 [DoctrineBundle] fixed previous merge 2011-05-03 16:52:19 +02:00
Fabien Potencier
a02805714f [DoctrineBundle] merged fabpot:doctrine-registry 2011-05-03 16:38:59 +02:00
Daniel Gomes
8870d3f31e Merge remote-tracking branch 'upstream/master' 2011-05-03 14:28:33 +01:00
Daniel Gomes
0147df6b22 added translation for European Portugues (Portugal) 2011-05-03 14:27:37 +01:00
Fabien Potencier
731993869c Merge remote branch 'Seldaek/exception_handling'
* Seldaek/exception_handling:
  [HttpKernel] Log non-http exceptions as critical as well
2011-05-03 14:53:38 +02:00
Fabien Potencier
13bc7c7c53 Merge remote branch 'Seldaek/exception_template'
* Seldaek/exception_template:
  [FrameworkBundle] Adjust styling and display of logs
2011-05-03 14:53:28 +02:00
Fabien Potencier
27d02a7d4a [Routing] fixed regression (/ should not be matched by /{foo} when foo has no default value) 2011-05-03 14:48:08 +02:00
Jordi Boggiano
04f9b23b34 [FrameworkBundle] Adjust styling and display of logs 2011-05-03 14:44:27 +02:00
Jordi Boggiano
0ca4ed33fe [HttpKernel] Log non-http exceptions as critical as well 2011-05-03 14:43:22 +02:00
Fabien Potencier
e9b085ef42 [DoctrineBundle] fixed typo 2011-05-03 14:06:34 +02:00
Fabien Potencier
036be03dff [HttpKernel] fixed a PHP notice 2011-05-03 13:55:00 +02:00
Fabien Potencier
ca4c1355c7 [DoctrineBundle] made doctrine:generate:entities smarter
The doctrine:generate:entities is now able to generate classes
based on a bundle name, a class name, or a namespace.

The command has still some limitations which will be hopefully
be fixed later on.

If also generates the repository class when possible
(replaces the doctrine:generate:repositories command).
2011-05-03 13:39:01 +02:00
Fabien Potencier
d2a9b23c28 [Routing] fixed routing when a pattern has only one segment which is an optional variable 2011-05-03 08:54:33 +02:00
Fabien Potencier
014b19040c [DoctrineBundle] changed the Registry to return a new instance if the current em is closed
$em = $this->get('doctrine')->getEntityManager();

    $em->getConnection()->beginTransaction(); // suspend auto-commit
    try {
        //... do some work
    } catch (Exception $e) {
        $em->getConnection()->rollback();
        $em->close();

        // get a new EM
        $em = $this->get('doctrine')->getEntityManager();
    }
2011-05-03 07:39:12 +02:00
Fabien Potencier
bd608c8bfa [DoctrineBundle] removed redundant check 2011-05-03 07:38:23 +02:00
Kris Wallsmith
4ea274244d [Form] updated listener to check that data is an array 2011-05-02 15:56:35 -07:00
Fabien Potencier
3e514c6eb8 [FrameworkBundle] simplified code 2011-05-02 23:04:24 +02:00
Fabien Potencier
4fd7892b34 [MonologBundle] fixed previous commit 2011-05-02 23:03:13 +02:00
Fabien Potencier
12fb4a0a95 Merge remote branch 'Seldaek/monolog_bundle'
* Seldaek/monolog_bundle:
  [MonologBundle] Added support for new Monolog log level
  [FrameworkBundle] Treat all log messages >=ERR as errors
2011-05-02 22:59:14 +02:00
Fabien Potencier
8746f7b902 Merge remote branch 'Seldaek/exception_logging'
* Seldaek/exception_logging:
  Fixed status code check
  [HttpKernel] Log 500+ errors as critical and not error
2011-05-02 22:58:19 +02:00
Fabien Potencier
f08fc7aae2 Merge remote branch 'Seldaek/loggerinterface'
* Seldaek/loggerinterface:
  [HttpKernel] Removed log() from the LoggerInterface as the priority can not be safely determined across implementations
  [HttpKernel] Prevent errors leaking out in the console on windows
2011-05-02 22:57:38 +02:00
Fabien Potencier
6b5438aa38 [DoctrineBundle] introduced a Registry class
The Registry knows all connections and entity managers declared into a service
container. The Registry is available via the 'doctrine' service.

If can be used to get connections and entity managers by name:

Before:

$em = $this->get('doctrine.orm.entity_manager');
$em = $this->get('doctrine.orm.foobar_entity_manager');

After:

$em = $this->get('doctrine')->getEntityManager();
$em = $this->get('doctrine')->getEntityManager('foobar');

It is better for several reasons:

 * we rely less on naming conventions
 * IDEs will be able to auto-complete methods
2011-05-02 22:28:48 +02:00
Jordi Boggiano
fd08f187c8 Fixed status code check 2011-05-02 21:50:21 +02:00
Jordi Boggiano
e0c12fa080 [HttpKernel] Removed log() from the LoggerInterface as the priority can not be safely determined across implementations 2011-05-02 19:04:49 +02:00
Fabien Potencier
6b74483204 [DoctrineBundle] made the ORM configuration service private (there are accessible via the entity manager anyway) 2011-05-02 18:50:13 +02:00
Jordi Boggiano
838853e58b [HttpKernel] Log 500+ errors as critical and not error
This allows people to filter easily between 404 type of responses (that are mostly for users) and real errors in their application (where they probably want to get an email notification
2011-05-02 18:49:30 +02:00
Fabien Potencier
d0e31b8ca6 changed Application to have nice error messages when something bad happens early on the CLI 2011-05-02 18:35:38 +02:00
Jordi Boggiano
a56ea15363 [MonologBundle] Added support for new Monolog log level 2011-05-02 18:32:17 +02:00
Jordi Boggiano
25d7009c1c [FrameworkBundle] Treat all log messages >=ERR as errors 2011-05-02 18:31:51 +02:00
Fabien Potencier
fc3be8a7cf Merge remote branch 'schniper/patch-1'
* schniper/patch-1:
  Fix Compass class path
2011-05-02 16:20:02 +02:00