ng to some groups is
implemented in FOS UserBundle (this is what the group are for in the
bundle).
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Googl
nstead of
$user->getRoles() === array('ROLE_EDITOR') as he can have several roles.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Gro
ed instead ? the user
could have some other roles which would make your statement fail.
> $securityContext->isGranted('EDIT', $post); // true
>
> Kind regards,
> Johannes
>
>
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, pl
ctively does not
exist) which should be
"Symfony\Bundle\DoctrineMongoDBBundle\DoctrineMongoDBBundle" as you wrote
in the point 3 of your mail.
>
> can guide me about it
>
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at
with the configuration I just paste
> here.
> Any hints?
>
> Thanks,
> Stefano
The mapping definition should be in the configuration of the entity
manager, not at the root of the doctrine.orm block. Not sure if this is why
you get the exception but it is an issue with your config.
--
un Load command, it seems to me that it is trying to load
> hidden
> files and fail as the result.
> When I remove hidden files, everything works. (but in this case svn is
not
> available :( )
>
> Regards,
> Nikita
This has been fixed in the master branch.
Regards
-
vior:
https://github.com/hidenorigoto/DefaultRouteBundle
Regards
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users&qu
ave access to
the container.
>
> I will wait to see if my two first bugs are fixed in the (hopefully
> upcoming) RC1 ! :)
>
> Thanks again,
>
Regards
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-proje
e to use the same firewall to handle the login and to securize
the site as they don't share their context by default. Restricting the
access has to be done with the access control map, not with the pattern of
the firewall which is responsible of the authentication, not of the
authorization.
On Mon, 21 Feb 2011 11:37:29 +0100, Jordi Boggiano
wrote:
> On 21.02.2011 10:43, stof wrote:
>> If you use Assetic you will also have to give the path to the web
folder
>> in the assetic config.
>
> This makes me think that it should maybe be a kernel parameter. Defined
&g
On Mon, 21 Feb 2011 01:58:13 -0800 (PST), Daniel Londero
wrote:
> On 21 Feb, 10:43, stof wrote:
>> It is possible as the core does not even know the path to the web
folder.
>> This is the reason why it is an argument of the assets:install command.
>
> That's great.
n know the path to the web folder.
This is the reason why it is an argument of the assets:install command.
Just take care to have the good path to the kernel in your front
controller.
If you use Assetic you will also have to give the path to the web folder
in the assetic config.
--
Christophe
ssword" to use the form-based authentication. If you
want to use the remember-me just add a checkbox "_remember_me".
Regards
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this mes
>getOptions());
>
The second argument of the Form::create method is the name of the form.
This is a mandatory argument (an exception is now thown when not set but
this was not the case in PR6)
An empty name breaks the retrieving of the datas as the name corresponds
to the variable name in $
ever, I have tried to set up the use of groups and
> have encountered teh following problem,
This form had not been updated with the other when the Form component
changed. This is now fixed. Just update your bundle to have the fix.
--
Christophe | Stof
--
If you want to report a vulnera
mespace as
this is the way the autoloader works to find the classes. You can look at
the sandbox to see how a project should look:
https://github.com/symfony/symfony-sandbox
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-proj
, a formatted list would be fine, or
use
> for each tag, not for a group of them.
>
> Thanks!
>
> Tac
Btw, the up-to-date doc is at http://docs.symfony-reloaded.org/master/
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at
ront controller of the dev environment to have an
exception message. The message provided by Apache when an error 500 occurs
does not says what was wrong.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
says that the "parent" function exists and
is used to display the content of the parent block :
http://www.twig-project.org/doc/templates.html#parent-blocks
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.
ristophe
Two solution:
{% block title %}My title - {{ parent() }}{% endblock %} keeping the
current layout
or witing the part you always want outside of the block in the layout so
it is not discarded when changing the block in a child template.
--
Christophe | Stof
--
If you want to report a
is the config:
app.config:
esi: ~
Regards
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to thi
g esi (to avoid loading the classes when not using it)
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post
t')" in the controllers)
which is set in
Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension as
many other services.
This service contains the dependencies of the form (validator, ...) to
avoid you passing each dependency by hand (which is also possible by
retrieving the
MemoryProvider, which is not
"HelloBundle/Entity/User" but "Symfony\Component\Security\Core\User\User"
as stated in the exception message.
The doc about encoders is here:
http://docs.symfony-reloaded.org/master/guides/security/users.html#configuring-encoders.
Regards
--
Christ
all other Doctrine annotations, you have to add the @orm: prefix on
the annotation.
If you want to allow NULL values in the database, you have to use
'nullable="true"'. This is exactly what it does.
Regards
--
Christophe | Stof
--
If you want to report a vulnerability i
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroup
What exception do you get ? The call stack is useless without the
exception (which should be printed before that).
Christophe
On Tue, 8 Feb 2011 09:00:55 -0800 (PST), deepak
wrote:
> Hi
>
> I have checked out the symfony 2 sandbox but I am not able to access
> the symfony console like we used t
othing appears about an error when
sending the mail so it seems not to be in the Symfony code.
Check your smtp parameters, and try using a real adress. Maybe the email
sent from @example.com is just discarded as spam by the mail server.
--
Christophe | Stof
--
If you want to report a vulnerability is
On Tue, 8 Feb 2011 06:21:36 -0800 (PST), Javier Garcia
wrote:
> No idea?
>
Well, what is your problem exactly ? You don't ask any question in your
previous mail.
Thus, the logs say the mail is sent.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony,
there to say "render the search form here" in a twig
template?
The render tag still exists in Twig. Where did you see it has been removed
?
Thus, for a form search, you can add the form in your template without
creating a Form instance for that and retrieve the parameter from the
Reques
out security:
http://docs.symfony-reloaded.org/master/guides/security/index.html
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users&
nes: ['php','twig'] }
>
> But that throws an exception: No engine is able to work with the
> "MyBundle:Dashboard:index.php.html" template.
>
>
> How to fix this?
The good syntax for the template name is
'MyBundle:Dashboard:index.html.php'.
gt; Any help or pointers in the right direction would be appriciated.
>
>
> ../Frenck
You have to enable the new SecurityBundle in your kernel as the security
has been moved out of FrameworkExtension.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony,
or the login pages.
You have to use the same firewall for the login and the other pages as
different firewalls don't share their context by default.
The firewall handles the authentication, not the autorization. You should
use the access control map for that.
--
Christophe | Stof
--
If yo
On Mon, 7 Feb 2011 04:22:44 -0800 (PST), Manu
wrote:
> I'll have to rewrite sfDoctrineGuard's hashing methods and validators
You can also extend the form provided in the plugin and unsetting the
fields you don't want.
--
Christophe | Stof
--
If you want to report a vuln
rst one to want that functionality on their
> website !
The profile is not handled by sfDoctrineGuardPlugin. It is an extension
point of the plugin to allow to add your own stuff in the user. How could
the plugin know what stuff you add ?
--
Christophe | Stof
--
If you want to report a vulnera
On Thu, 3 Feb 2011 08:57:43 +0100, Christophe Beyer
wrote:
> Hello,
>
> How can I desactivate the Twig auto escaping ?
>
> Thanks !
Just xonfigure it this way in the config file:
twig.config:
autoescape: false
Regards
--
Christophe | Stof
--
If you want to report
schema. And, of course, this requires the type
> to be registered as well.
>
> The must be a universal solution, and I hope that it will be added to
> the Symfony documentation.
>
The console also boots the bundles. So this will work in the console too.
--
Christophe | Sto
s. :)
>
No, it can't be done in autoload.php. The autoload file is required at the
very beginning of the request. At this time, even the kernel does not exist
so you cannot access any service as they don't exist.
--
Christophe | Stof
--
If you want to report a vulnerability issue o
nable this extension in the twig configuration:
twig.config:
extensions: [twig.extension.text]
If you want to enable other twig extensions (debug for example) just add
the service id in this array.
Regards
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, pleas
oloader tries to load
Application\MyBundle\Controller\GeSHI_Displayer because PHP tries to access
this class.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to
forms/overview.html#your-first-form
>
> I don't understand... What is wrong ?
>
> Thanks,
>
> Christophe
The class Locale is an intl class. The dependency with intl is currently
mandatory (but will become optionnal before the release) so check you have
intl enabled.
:54, Christophe COEVOET wrote:
>> A bundle adds the possibility to use a generic route but it is
>> absolutely not up-to-date with Symfony2
>> :https://github.com/hidenorigoto/DefaultRouteBundle
>> Maybe it can help you if you update it.
>>
>> --
>> Christop
e him its
dependencies. See
http://docs.symfony-reloaded.org/master/guides/validator/constraints.html#constraint-validators-with-dependencies
for the doc.
Regards
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
bjects or
am
> I just off the track here?
>
> Thank you in advance,
> Jaakko R
The login check has to be done by the main firewall as they don't share
the context any more. Not sure if it is the issue here but it can be.
As you also use anonymous users the simpliest configuration is
t;
> Happy to get some advice :)
>
> Thanks in advance,
> Christian
>
>
The namespace of the constraint class is false. So this constraint cannot
be found and then call the associated validator (which will not be found in
the current case as it is in a different namespace)
Reg
> This results in:
> (1) /myroute/my-item/56
> (2) /myroute/my-item-56
How will you parse the second one ? my item-56 or my-item-56 ?
I think the best solution would be to include the id in the slug and then
search the item by slug (which is unique as it contains the id at the end)
--
Chri
ut the configuration.
Your current configuration will store all the entities in each database.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups &q
h 2 different entity
managers as this will break the entity management (the entity managers will
use different UnitOfWork trying to manage the same entity which will break
the consistency of your database).
Thus you have to be sure to use the entity manager managing your entity.
--
Christophe |
ryClass="Application\HelloBundle\Repository
> \Test")
> * @orm:Table(name="test")
> */
> class Test
> {
Did you register the HelloBundle in the orm configuration ? If not it is
not taken into account by the entity manager. This is explained in the doc:
http://do
On Thu, 20 Jan 2011 04:09:24 -0800 (PST), Venzon wrote:
> @stof: As you guys mentioned before; when I call entity repository
> by:
> $this->get('doctrine.orm.entity_manager')-
>>getRepository('HelloBundle:Test') I retrieve default repository where
> only
es you the repository of a given entity. So
the argument has to be the entity class name
Regards.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Goog
ository to be sure you get your custom repository instead of the
default one.
Regards
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "s
ect as stated in the Symfony2 doc:
http://docs.symfony-reloaded.org/master/guides/doctrine/mongodb-odm/index.html
This is the difference with the Doctrine doc as the namespace is added by
DoctrineMongoDBBundle to avoid conflicts with the validation annotations
(same occurs for the ORM with the @orm: n
says:
>
>
> Call to undefined method BasesfGuardUser::getSfGuardUserProfile
>
>
> sf 1.4/propel 1.4
>
> Javier
The correct method name is ``getProfile()`` as stated there:
http://www.symfony-project.org/plugins/sfGuardPlugin
--
Christophe | Stof
--
If you
to log warnings in the
prod environment you have to change the ``level: err`` line in your config.
I think it is ``level: warn`` for warnings but I'm not sure.
Regards
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project
56 matches
Mail list logo