The good solution is to define your UserProvider as a service and pass
the DBAL connection (or the EntityManager if you sue the ORM) as an
argument. You can also pass the complete container as an argument.
Btw, you should look at https://github.com/FriendsOfSymfony/UserBundle
which implements it.
Le 16/01/2011 18:01, jason.hanley a écrit :
Hi all,
I've been trying to follow the docs at
http://docs.symfony-reloaded.org/master/guides/doctrine/orm/overview.html
to get a model up and running for a while now with both the latest
sandbox, and using the latest libraries at externals from Git.
Le 15/01/2011 19:54, Grzegorz Śliwiński a écrit :
I've recently started to look into symfony2, and decided after
checking sandbox version, that if anything helps me to learn symfony2,
it would be clean project. Finally found information about symfony
bootstrap, that generates clean project
Le 20/01/2011 19:39, Venzon a écrit :
I changed a bit my entity manager configuration:
entity_managers:
conn1:
connection: conn1
mappings:
HelloBundle: { type: annotation }
conn2:
connection: conn2
mappings:
Le 22/01/2011 16:14, Wojciech Sznapka a écrit :
Hi,
how can I write routes to achieve something like generic route, which
redirects to dynamically resolved controller?
generic:
pattern: /{_controller}/{_action}
defaults: {_bundle: ExpencesBundle}
I want this route to be kind of generic
Le 29/01/2011 21:13, Michael a écrit :
Is there a way to directly use the security feature to login in the
PHP code?
In my project (Latest Symfony2.0), I submit the login/registration
using ajax when processing the data. On failure I return a string with
the error and on success I login the
Le 31/01/2011 21:02, Adrien Mogenet a écrit :
Hi everyone,
I'm still learning Symfony2...
I added GeSHI as a library in src/vendor/geshi.
I renamed the GeSHI class to GeSHI_Displayer, as described in
documentation PEAR naming usage (http://docs.symfony-reloaded.org/
Le 31/01/2011 21:43, Adrien Mogenet a écrit :
I moved the class within src/vendor/geshi/GeSHI/Displayer.php ... but
nothing happened :-x
Class 'Application\EbBundle\Controller\GeSHi_Displayer'
If you are using this namespace, you have to autoload it according to
the namespace and it has to be
Le 31/01/2011 22:30, Adrien Mogenet a écrit :
I don't understand, GeSHI is not using namespaces !
But if I use new GeSHI_Displayer, is does not work ;
\GeSHI_Displayer does !
If there is no namespace it is logical. But in your previous message you
talked about
Le 01/02/2011 20:04, Alexander Kachkaev a écrit :
Hello, guys!
Does anyone know how to integrate a custom doctrine mapping type into
a Symfony 2 project?
There is a great documentation on how to do that simply using Doctrine
(http://www.doctrine-project.org/docs/dbal/2.0/en/reference/
Le 01/02/2011 22:30, Stevewa a écrit :
Hope to help the newbies like me:
when you run check.php and you see your timezone is not set, the INI
file that you need to edit is shown on that check.php webpage above
the warnings (so you don't waste time editing php.ini under cli and
cgi...
and after
Le 02/02/2011 17:52, stof a écrit :
On Tue, 1 Feb 2011 16:14:58 -0800 (PST), Alexander Kachkaev
alex.kachk...@gmail.com wrote:
I guess there might be some global handler for all the resources. Thus
the link to entity manager object could be extracted in autoload.php
and everything would be
Le 04/02/2011 11:57, deepak a écrit :
Hi
Do we have some plugin for symfony2 such as something similar to
sfGuardPlugin or anything?
Or we need to build in the authentication functionality from scratch
for our symfony2 projects?
Deepak
Look at the UserBundle developped par FriendsOfSymfony
Le 04/02/2011 10:07, Manu a écrit :
well I was able to make it work by adding c.id in the select.
But isn't this a bug ? Doctrine doesn't see that I asked for
count(c.id) ?
In your request, the main entity was Content. COUNT(c.id) does not
select a field of Content to be able to build the
Le 02/02/2011 23:51, Justin Fortier a écrit :
Hey guys,
I've been having some issues defining my own Doctrine Entity class. I
was able to get http-basic authentication working, and then form-login
to work. Now it's just trouble getting my custom entity to work. All I
get are Bad Credentials
Le 05/02/2011 23:04, phil0 a écrit :
Whenever I add something to my security.config in security.yml the
following exception is thrown from the YamlFileLoader loader in the DI
component:
InvalidArgumentException: There is no extension able to load the
configuration for security.config
No
Le 05/02/2011 23:07, phil0 a écrit :
Okay. Thought that core bundles were enabled by default?
They were until recently, right?
The security has been moved to its own bundle recently. It is not in
FrameworkBundle anymore.
--
Christophe | Stof
--
If you want to report a vulnerability issue
Le 06/02/2011 00:49, Justin Fortier a écrit :
Hey Christoph,
I've enabled the SecurityBundle in my kernel, but I receive:
The service security.context does not exist.
I understand that they changed the namespace of the security
component, and I've modified accordingly (I believe: use Symfony
Le 07/02/2011 18:42, phil0 a écrit :
Hello there
How does the Symfony 2 ACL and roles interact?
I've given my users a number of ACL entries to work with. However, I
would like ROLE_ADMIN to have all permissions, without needing to add
ACL entries for each admin user for each object.
How is
Le 07/02/2011 18:49, phil0 a écrit :
Ah that seems reasonable.
Where would I put that code?
In the same place where you put your other ACL entries.
You still have to define an entry for each domain object (as each domain
object has its own ACE) but a single entry will do the work for all
Le 07/02/2011 18:49, Justin Fortier a écrit :
Hey Frenck,
I had problems with this too. I moved my security.config into my
config.yml, and that seemed to alleviate some problems. I also enabled
the SecurityBundle in my AppKernel.php ( new Symfony\Bundle
\SecurityBundle\SecurityBundle() ).
there
Le 07/02/2011 19:18, Nikita Korotaev a écrit :
After updating to PR6, and reading a new piece of documentation about
forms: http://docs.symfony-reloaded.org/guides/forms/overview.html
I've made a separate class for my Registration form(Previously
everything was in signupController). However
Le 07/02/2011 20:57, ebloa a écrit :
Hi
After updating my Symfony 2 vendors I receive the following error on
every request:
Fatal error: Call to a member function set() on a non-object in /[...]/
vendor/symfony/src/Symfony/Component/Security/Http/Firewall/
ExceptionListener.php on line 165
It
Le 08/02/2011 21:08, jdewit a écrit :
I am following the online documentation and am getting the following
error in my controller.
Fatal error: Call to undefined method Application\HelloBundle\Contact
\ContactForm::create() in C:\xampp\htdocs\sandbox\src\Application
Le 08/02/2011 22:43, jdewit a écrit :
Thanks for the quick reply!
Just found the other thread that deals with this as well.
http://groups.google.com/group/symfony-users/browse_thread/thread/ca55953f92ac004c
So I updated my sandbox's Symfony vendor folder with the PR6 version,
resolved some bad
Le 08/02/2011 23:05, jdewit a écrit :
Yet another error.
You have to enable the templating engines you want to use in the
templating config. This is a performance optimization as it avoids
loading the PHP renderer when you only want to use Twig. Look at the
configuration of the sanbox for an
Le 09/02/2011 14:55, Gustavo Adrian a écrit :
Hi all,
I'm wondering if I'm doing the right thing regarding validation of
associated entities. Suppose you have the following entities
(simplified to show you my point):
/** @orm:Entity */
class Country
{
// ..Some Fields
}
/**
Le 09/02/2011 17:57, Ryan Walker a écrit :
I am searching for a solution to an authentication problem and I see
that Serg had the same problem (#2 below) way back in May of last year
before I was on this list. As far as I can tell, no solution was
posted to list.
In my development
Le 10/02/2011 01:49, Nikita Korotaev a écrit :
Hi everyone,
I have entities mapped with Doctrine annotaions, like:
/**
* @orm:Id
* @orm:Column(type=integer)
* @orm:generatedValue(strategy=IDENTITY)
*/
protected $id = null;
/**
* @orm:Column(type=string, length=255, unique=true,
Le 11/02/2011 20:30, jdewit a écrit :
I'm trying to use the entityToIdTransformer in a form so I can
populate a choiceField dynamically.
Here's my code.
namespace Sensio\HelloBundle\Form;
use Symfony\Component\Form\Form;
use
Le 12/02/2011 07:17, wickass a écrit :
I just created an new bundle using the console init:bundle command.
Works like a charm for setting up a skeleton structure for a new
bundle, however I noticed that in the config/ folder it only generated
a routing.xml no .php and no .yml.
Is there a
Le 12/02/2011 16:29, stfalcon a écrit :
I understood. Thanks ;)
Do you have example this dependencies?
Here is the definition of the service copied from the form.xml file in
FrameworkBundle :
!-- FormContext --
service id=form.context class=%form.context.class%
argument type=collection
Le 12/02/2011 16:51, Tac Tacelosky a écrit :
Where is the latest version of swiftmail kept? The version that's
included in the symfony sandbox app is 4.1, but the latest I can find
on github is 4.07:
https://github.com/swiftmailer/swiftmailer
On the home page of the site itself, it's still
Le 13/02/2011 14:04, pzwosta a écrit :
Hi
in Symfony 1 I could add tasks by extending a sfBaseTask, provide
configure and execute methods and store the class file in the tasks
directory.
I assume Symfony 2 has something similar. I'd guess something around
the command class but no idea where to
Le 13/02/2011 23:47, Yohan 'rouKs' G. a écrit :
Hi all,
I've got a problem with custom listener after upgrading to PR6.
Here my config :
services:
kernel.listener.page_listener:
class: Bundle\PageBundle\Listener\PageListener
tags:
- { name: kernel.listener
Le 14/02/2011 19:28, Daniel Burge a écrit :
Hi,
Does anyone know where to find out what needs to be updated if
anything to move from PR5 to PR6?
Also, is there any notification that goes out when a new PR becomes
available?
I tried to find something by searching the user group but maybe
Le 14/02/2011 20:25, Daniel Burge a écrit :
Hi,
Thanks for the responses. I didn't know about the blog so I'll monitor that
from now on.
On the github commits, are those immediately available in the zip file
download as well? Or do those happen at some other time?
Thanks,
Daniel
If you use
Le 14/02/2011 21:18, violyn a écrit :
hi-
i am trying to use translation in the twig file generated by a
controller. it doesn't work (the page is generated as normal, with no
translation).
here are the things i have done:
in app/config/config.yml i added this line:
translator: { fallback: en }
Le 15/02/2011 23:57, Lideln a écrit :
Since I cannot add new answers to the topic I created earlier (why
that ?), I create a new one here with additionnal info.
As I said, I followed the official tutorial to create a RegisterForm
and using it to register new members.
But I got stuck at the
Le 16/02/2011 23:00, Lideln a écrit :
Hi !
I am experimenting the PR6, but I could not find how to access things
from Entity just as you would do from Controller ($this-
get('database_connection') or $this-
get('doctrine.orm.entity_manager') and so on).
It would be nice to place all static
Le 21/02/2011 19:50, oscar balladares a écrit :
Hi everybody.
It may sound very weird to ask this question; but what I want to do is to
create a custom navigation menu.
So I want to get the current requested controller's or bundle's name
not from a template but from the layout.
I have to
Le 21/02/2011 21:27, Lemmi a écrit :
Now I understand all your points but it's not work anyway.
I try to add an extra access control so that anonymous users can
login. Accessing the login path leads to the inivite loop I mention in
my post before.
Here my configuration for now:
Le 22/02/2011 11:06, Manu a écrit :
Hello, I have the following line in my code :
mb_substr(strip_tags($comm-getRawValue()-comment),0,30,'UTF-8')
This allows me to display only the first 30 chars of a comment.
But when the comment contains an accent at that string position, the
output is :
Le 22/02/2011 11:53, Manu a écrit :
I'd like to add that the comment contains the html entity (thanks
tinymce!)
Then you have the cause of your issue: you need an unescaped string to
be able to truncate it well. If you truncate inteacute;grer to 6
characters it is logical to get intea
--
Le 22/02/2011 12:04, apm a écrit :
Like this?
/**
* @orm:
* @ManyToOne(targetEntity=Town, inversedBy=streets)
*/
public $town;
I am try that just now, no effect.
And not in docs not in other project (i trying search @ManyToOne
directive on github codes) no empty @orm:
Le 22/02/2011 12:09, Manu a écrit :
Sure, but why do I get a '?' caracter if I use html_entity_decode
before cutting ?
And why does the html entity disapear when it isn't cut ?
Use html_entity_decode with the good encoding. Your '?' character is due
to the fact your 'é' character is in another
Le 22/02/2011 15:38, Tipoun a écrit :
Hello,
I am a Symfony1 user.
Today, I try Symfony2 but I don't understand how to create an
application when I use source code from https://github.com/symfony/symfony
I know there is a sandbox, but I would like to know how to create an
application from
Le 22/02/2011 16:43, Alex Potter a écrit :
On Tuesday 22 Feb 2011 14:44:03 Christophe COEVOET wrote:
https://github.com/Garfield-fr/Symfony2Project which setup a project
using git submodules for the vendors
Unfortunately, that URL returns a 500 error:
Initialized empty Git repository in /home
Le 22/02/2011 16:52, Florian Semm a écrit :
hi,
i have no access to the user-token when i calling the 'security.context'. the
logger says that a user has logged in successfully and there are also data in
the session
The context is not shared between the different firewalls by default so
you
Le 23/02/2011 19:24, Кирилл Кокоша a écrit :
Thanks! It's realy help. I sew it, but I think, it's for configurating
DB from php file, but I configured it from yml.
Does you YAML filename match the fully qualified class name of your
entity (using . as a separator) ? This is needed for Doctrine.
Le 23/02/2011 20:22, Zap a écrit :
Hi,
1) I wonder, how to define template for 404 or 500 errors? - is it
documented somewhere yet, because I could not find it?
The doc about this has been written today and is available here:
Le 23/02/2011 21:58, oscar balladares a écrit :
Holly SH**T! There is a lot different (more detailed) information in
the /master/guides!!!
Im feeling like in Super Mario World when you find a secret place!
Thanks for this info!!!
The doc under /master/ contains the latest version of the doc.
Le 23/02/2011 22:09, Кирилл Кокоша a écrit :
I have latest version from github, and my config sems like:
doctrine:
dbal:
driver: pdo_mysql
dbname: dbname
user: user
password: pass
security:
acl:
connection: default
try to change.
The subject says he uses
Le 23/02/2011 23:46, olimination a écrit :
Hello,
I have started to do a simple webapp with the new Symfony2(with
sandbox version commit 1fc745d).
I have added the SecurityBundle for authentication and somehow the
logout configuration seems to work in a special way or maybe I don't
Le 24/02/2011 11:12, Lideln a écrit :
The container cannot be accessed from the view.
What about $view-container
Unless you achieve accessing protected properties outside the class it
does not work.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please
Le 24/02/2011 20:24, Richard Fullmer a écrit :
First, I'd like to say that I think the symfony 1 dependency injection
component has completely changed the way I think about writing
testable code. It's fast, fantastic, and well documented.
I've been awaiting such documentation for the Symfony
Le 25/02/2011 22:07, Alexander Kachkaev a écrit :
Hi everyone!
My question is regarding generating responces at core.exception event.
I would like to make my own global custom exceptoin handler. I have
implemented a listener which looks like this:
class MyListener
{
public function
Le 27/02/2011 21:03, Justin Fortier a écrit :
I too found form labels counter intuitive. It would seem it should be
easy to override the default label by passing in the option 'label'.
Perhaps I'll fork symfony2 implement the changes and do a pull request.
There is currently a proposal to
Le 26/02/2011 11:26, MrEnirO a écrit :
Hey.
I am trying to create a custom Translations loader.
According to http://docs.symfony-reloaded.org/guides/translation.html
i have created my class and configured it, but how do i tell
translator to use my custom loader???
And how does it decide what
Le 27/02/2011 01:01, igniteflow a écrit :
I'm having the same issue. I'm using the sandbox and have been
following the
http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html
tutorial, but am getting the
doctrine.dbal.default_connection must be defined.
Which version of the
Le 28/02/2011 04:38, oscar balladares a écrit :
The current way is fine for me. I think Labels should go on the View,
and be references through the corresponding field's name. Setting the
label inside the Form component is what I hated about Symfony 1.x.
Lets say the layout desinger tell us
Le 28/02/2011 22:16, oscar balladares a écrit :
Hi everybody.
I realize that in PR6 there is no Symfony\Bundle\DoctrineBundle\Form\
package-namespace
So it is impossible to me to bind Forms to Entities and flush them
into the database.
According to Docs, you should use
Le 28/02/2011 22:32, oscar balladares a écrit :
Before anything, thanks a lot...
This is amazing, I was covering the guide and I saw the
EntityChoiceField, but for some reason I decided to try
the Transformers (not the movie Plop! - a terrible joke :(
And I thought it was the only way.
Le 28/02/2011 16:08, Nico a écrit :
On 27 Feb., 21:28, Christophe COEVOETs...@notk.org wrote:
Le 27/02/2011 01:01, igniteflow a crit : I'm having the same issue. I'm
using the sandbox and have been
following thehttp://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html
tutorial,
Le 02/03/2011 18:43, Gustavo Adrian a écrit :
Hi all!
I've updated my symfony 2's copy to the latest one. I've updated all
the major changes. I have only one problem, and it happens only on the
dev environment. On every page I get this:
Fatal error: Uncaught exception
Le 02/03/2011 18:47, Gustavo Adrian a écrit :
Hi everyone,
I'd like to know if there's a way to load fixtures from different
bundles in order (without calling explicitly doctrine:data:load for
each bundle by hand). I create the bundle's instances (in the
registerBundles method on my
Le 02/03/2011 19:00, Gustavo Adrian a écrit :
Yes, but my problem is the order in which they're loaded. Suppose I have:
. Layout
. Page (Has an association ManyToOne with Layout)
In this case, if the fixtures from Page are loaded before the Layout
ones, it would throw a constraint exception,
Le 02/03/2011 19:06, Alex Pilon a écrit :
I do not know very much about symfony2 at the moment, however in
symfony 1 if you load a directory of fixtures in a single command such as
symfony doctrine:data-load data/fixtures/pages.yml
data/fixtures/layout.yml
it doesn't matter what order you
Le 03/03/2011 05:45, Gustavo Adrian a écrit :
Actually playing around with the interface I've noticed that the order
is numbered. Given that my app actually has not a fixed number of
bundles (and, for instance, of fixtures), I had to look for another
way of ordering, because this way I can't
Le 03/03/2011 12:57, Marc Cerrato a écrit :
Hi there,
I have been trying to use the remember_me option when authenticating a
user (form_login authentication). Everything seems to work since the
response header includes a 'set-cookie' with the corresponding
REMEMBERME cookie, but it doesn't
Le 07/03/2011 15:46, Javier Garcia a écrit :
http://trac.symfony-project.org/ticket/8171
what to do when someone has assigned a ticket since 1 year and it has
not been resolved or deleted?
Assigning the tickets to fabien is the default behavior of the issue
tracker so this is not really an
Le 07/03/2011 16:18, Donald a écrit :
Hi Roger,
Thanks for the response.
I do have the _username and _password fields in my form, and the
action of the form is pointing to the _security_check route.
I'm using the Doctrine UserProvider.
I have tried the routing config without the controller,
Le 07/03/2011 21:24, Donald a écrit :
Christophe,
Thanks for the response.
I'm aware that there are certain features missing from my example
above. But I'm trying to keep this test case very limited so I can
concentrate on the problem at hand; being that the check
authentication is not
Le 07/03/2011 21:34, Thecrusty a écrit :
Hi
i just downloaded the Symfony 2 PR7 and i am just wondering why mit
project simply ignores the content off my app/config/security.yml
file. I can just fill it with rubbish, but Symfony does not
complain... Do i have to link this file into my
Le 08/03/2011 07:52, Jean-Michel Schelcher a écrit :
Hi,
I converted an Doctrine 1 database to some .yml schema files.
How can I generate entities files (classes) from them ?
I generated a bundle, put that files into
/Resources/config/doctrine/metadata/orm/,
renamed as the bundle name et
Le 08/03/2011 13:16, Tomas a écrit :
Hello!!
I will need to connect to a MSSQL server DB in my next (first) Symfony
2 project, which ORM should I use / is best prepared to work with
MSSQL (probably sql server 2005) ? propel or doctrine?
Thanks!
When using Symfony2 you should really use
Le 08/03/2011 15:36, fa a écrit :
My page is well displayed but there is no tool bar
Any ideas?
Does your page contains well-formed HTML ? If not it is totally normal
as the WDT is only injected when a /body tag is found. This is needed
to avoid duplicating it when using ESI.
--
Le 08/03/2011 22:37, jdewit a écrit :
Getting the error:
Fatal error: Interface 'Doctrine\Common\Persistence\ObjectManager' not
found in
/var/www/symfony-standard/vendor/doctrine-mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php
on line 49
config.yml
doctrine_mongo_db:
server:
Le 09/03/2011 02:58, jdewit a écrit :
I've looked at other extended bundles like in lichess and the thing to
do seems to be to use xml mapping in the base bundle and annotations
for extra fields in the extended bundle.
Is this the suggested way of things?
I experimented with using xml
Le 08/03/2011 23:26, Mark C a écrit :
I'm trying to use EverzetRestfulControllersBundle, using the updated
fork by sheknows here:
https://github.com/sheknows/EverzetRestfulControllersBundle, however I
get the following error:
Fatal error: Uncaught exception 'InvalidArgumentException' with
Le 02/03/2011 11:33, Brocco a écrit :
Hello,
I'm writing a bundle for symfony2 and I would like to override some of
its template in my app. I tried doing what's written in the doc there:
http://docs.symfony-reloaded.org/master/guides/templating.html#overriding-bundle-templates
But it doesn't
Le 09/03/2011 17:35, Nicolas Wormser a écrit :
It might look like a pure noob question but I can't manage to set
personnal messages into my dev.log from a controller (or whatever).
I tried things like $this-logger-info(message); in a controller to
no avail… Also tried to include the logger
Le 10/03/2011 14:00, coolmec33 a écrit :
Hello,
i have exactly the same problem.
did you resolved it ??
Thanks
This issue only occurs when FOSUserBundle is registered before
SecurityBundle in the kernel. So a workaround waiting we change the
implementation is to register SecurityBundle
Le 10/03/2011 18:09, Jonathan Wage a écrit :
Can we see your ORM mappings configuration?
- Jon
On Thu, Mar 10, 2011 at 2:38 AM, jdewit
jorisdewitblackbe...@gmail.com
mailto:jorisdewitblackbe...@gmail.com wrote:
I get the error.
[RuntimeException]
Repository
Le 11/03/2011 19:42, Juergen Kober a écrit :
I guess that means, there's no easy way to use Doctrine extensions with
Symfony 2 (PR7) right now or in the near future?
Thanks for the answer.
There is: just get the master branch of the Doctrine repo instead of the
2.0.x one and it will work.
--
Le 12/03/2011 00:09, oscar balladares a écrit :
Oh! I didnt know, thanks for the tip. I'll look after that repo
2011/3/11 Christophe COEVOET s...@notk.org mailto:s...@notk.org
Le 11/03/2011 23:33, oscar balladares a écrit :
It is a shame that Docs are not sync with the changes
Le 12/03/2011 17:02, César Hernández a écrit :
Good morning
Yesterday is testing the standard version PR7
at first I mistook it
1 .- did not come with vendor
There is a tarball with the vendors on the symfony.com website and
another one without them.
If you use the git repo you need to run the
Le 12/03/2011 22:51, pzwosta a écrit :
Hi,
I try to include a 3rd party (Zend) class. The directory structure is
like that:
\vendor
\name
\lib
\name
Class.php (includes class Name_Class)
\Subdir
Le 14/03/2011 10:03, Nikita Korotaev a écrit :
My bundle with annotation routing is for personal application.
Why it encourages to use xml in routings for shared bundles?
XML is validated throuch XSD.
And the annotations for the routing are not a core feature. You need a
third-party bundle
Le 14/03/2011 15:17, Faltu Email a écrit :
http://symfony.com/doc/2.0/quick_tour/the_big_picture.html
where can I download the sandbox. the page does not exist anymore.
The sandbox has been replaced by the standard edition which is available
on the symfony.com website.
--
Christophe | Stof
Le 15/03/2011 11:47, César Hernández a écrit :
Greetings
Continuous truly lost
with the implementation of MDGs
I'm trying to do a simple test MongoDB
finished making a new copy of the standard version of symfony2
run
./bin/vendor.sh
./bin/build_bootstrap.php
I added in AppKernel.php
new
Le 15/03/2011 16:38, Gustavo Adrian a écrit :
Hi all,
I tried to configure a service with the attribute shared but when I
use it, it throws an error. I saw in the DIC's docs that this is the
attribute I should use to make a service shared.
How can I do this in Symfony 2?
This was an old
Le 17/03/2011 02:08, Gustavo Adrian a écrit :
Using strict=false in all the references to services with
scope=prototype seems to ignore the problem, as suggested by the
exception. The thing is that I still don't understand what could be
the problem in this case. Maybe I'm doing something wrong
Le 17/03/2011 04:02, Gustavo Adrian a écrit :
Hi Christophe,
But having a container-scoped service (module) that has either a
container-scoped service service or a prototype-scoped service
service is the same thing, and is valid in both cases, at least in
this particular case, as my module
Le 17/03/2011 18:01, Lideln a écrit :
Hi,
I'm trying to use Twig, and I would like to do a simple thing :
Display the parameters.title value defined in my config.yml file.
I found how to display http query parameters, but not config params
(the class GlobalVariables does not contain a
Le 17/03/2011 05:20, Marc MacLeod a écrit :
Hi all, I'm getting the following error:
Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection
\Exception\CircularReferenceException' with message 'Circular
reference detected for service doctrine.orm.default_entity_manager,
path:
Le 18/03/2011 17:01, Otávio a écrit :
Hi all,
I have symfony installation as a submodule in my git repository. I
have updated it today, then now, when I try run console I have the
follow error message:
You need to rebuild your bootstrap file with the bin/build_bootstrap.php
file each time
Le 06/02/2011 22:13, Michal_V a écrit :
Hi, What is the correct way to get action and route name in a template
in Symfony2? (PHP and Twig syntax). Thanks
the Request object is available through the app variable which give
access to the route name and the controller name.
Twig:
Le 21/03/2011 20:11, Gustavo Adrian a écrit :
Hi all,
I'm starting to implement the ACL feature on my app and, for what
I''ve read and what I've already implemented, I must say: it's
BEAUTIFUL. Great job guys. It's just what I was looking for :)
I have one question about this wonderful
Le 21/03/2011 23:02, Gabriele Genta a écrit :
I am experiencing the same issue, but in a different context.
I'm using a symfony2 application as a backend for a Flex client, so
that it essentially implements a bunch of webservices.
Every time I make two simultaneous requests to the server I get
1 - 100 of 349 matches
Mail list logo