Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
symfony 1.1 : I really need everybody's opinion
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 36 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Fabien POTENCIER  
View profile  
(4 users)  More options Dec 28 2007, 1:52 am
From: Fabien POTENCIER <fabien.potenc...@symfony-project.com>
Date: Fri, 28 Dec 2007 07:52:22 +0100
Local: Fri, Dec 28 2007 1:52 am
Subject: symfony 1.1 : I really need everybody's opinion
Hi all,

The symfony 1.1 release comes along nicely but I still have 2
major/blocking problems which need to be fixed before 1.1-beta1 and I
have no simple solution:

  * Plugins are unable to register routes (#2408)
  * It's not possible to connect listeners early on

I've tried very hard to find a solution to those 2 problems with no
luck. This is mainly due to the introduction of the event dispatcher and
how objects now communicate together automagically.

* Short story for problem 1: The possibility for a plugin to register
routes in symfony 1.0 works because sfRouting is a singleton. So plugins
can just get the instance of the routing and add routes. In symfony 1.1,
the sfRouting class is not a singleton anymore, so if you want to add
routes you need to get the sfContext instance which does not exist yet.
If you get it, you trigger the sfContext initialization early (with all
the possible side effects it might have) and when you have the instance,
the request is already parsed by the routing object, so your route
registration won't have any effect.

* Short story for problem 2: The dispatcher is created by the
sfContext::initialize() method where the factories are also loaded. So,
there is no way to do something between the dispatcher creation are the
loading of the factories. It means that it's impossible for the
developer to register its own listeners for the event that are notified
by core objects during initialization.

I can give you more information about the solution I tried and why they
do not work.

But I have a solution that fix those 2 problems and have a lot of other
benefits. As it introduces a lot of changes, I want your feedback before
committing anything. The solution is already implemented and was
expected to be committed for symfony 1.2 but I really think we need it
for 1.1.

The solution is to introduce a new object called sfConfiguration. This
object is responsible for the configuration of an application. The
sfContext is not a singleton anymore and now takes a sfConfiguration
object as an argument. This fixes a lot of things:

  * The dispatcher is created very early in the process by the
sfConfiguration object, before sfContext is initialized.

  * The developer can create its own configuration
(ApplicationConfiguration) and do whatever he wants very early (with
access to the dispatcher)

  * The sfConfiguration class has all the sfLoader:: static methods (but
they are not static anymore). So, it's not possible to override sfLoader
(#2288)

  * The sfConfiguration class initializes the directory structure. So,
if you want to change the web root directory, it's just a matter of
calling the ->setWebRootDir() method in
ApplicationConfiguration::configure() method. The same goes for any
other directory structure customization. This is perhaps the most
frequently asked question on the mailing-list.

  * As the context is not a singleton anymore, it's now possible to
create a link for a frontend action from a backend module. Hmm, this IS
the most frequently asked question on the mailing-list and the forum.

  * Initialization is separated in 2 different phases: The
initialization of the framework (sfConfiguration) and the initialization
of a request (sfContext). It eases testing a lot.

  * Unit tests are easier because you just need a sfConfiguration object
(symfony 1.0 sometimes requires a sfContext with all the problem of
loading factories, generating cache files, ...)

  * All constants are removed (SF_APP, ...). They are just
sfConfiguration constructor arguments. In fact, all singletons are also
removed.

  * and many other things I can't remember right now

The major change is the front controller script:

<?php

include dirname(__FILE__).'/../config/config.php';
require_once $sf_symfony_lib_dir.'/config/sfConfiguration.class.php';
require_once $sf_symfony_lib_dir.'/util/sfContext.class.php';

$configuration = new ApplicationConfiguration('##APP_NAME##', 'prod',
false, dirname(__FILE__).'/..', $sf_symfony_lib_dir, $sf_symfony_data_dir);
sfContext::createInstance($configuration)->dispatch()->send();

To upgrade projects, we will need to change the front controllers and
people will have to move the customization they made in their
application config.php file into the ApplicationConfiguration class.

Please, give your feedback,
Fabien

--
Fabien Potencier
Sensio CEO - symfony lead developer
http://www.sensiolabs.com/
http://www.symfony-project.com/
Sensio Labs
Tél: +33 1 40 99 80 80


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lionslair  
View profile  
(1 user)  More options Dec 28 2007, 4:20 am
From: lionslair <webmas...@lionslair.net.au>
Date: Fri, 28 Dec 2007 01:20:46 -0800 (PST)
Local: Fri, Dec 28 2007 4:20 am
Subject: Re: symfony 1.1 : I really need everybody's opinion
I tried to use the 1.1 version today and quickly had to go back
because none of the plugins works.  From further reading I take it you
are trying to consolidate a lot of classes into  a number of major
classes.  I think routing logging and configuration you are trying to
move into the one class.  I assume this is for a speed advantage.
Without making use of your new methods it is very hard to give you an
answer.  Can it be done with proxy calls from the old methods to the
new ones to overcome these issues so when people upgrade there current
sites using symfony they do not break.

I may be completely off track to what you are asking but I do see
where you are trying to go.  Keep up the awesome work you are doing :)

On Dec 28, 3:52 pm, Fabien POTENCIER <fabien.potenc...@symfony-


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PeterPresto  
View profile  
 More options Dec 28 2007, 4:30 am
From: PeterPresto <petermuus...@gmail.com>
Date: Fri, 28 Dec 2007 01:30:49 -0800 (PST)
Local: Fri, Dec 28 2007 4:30 am
Subject: Re: symfony 1.1 : I really need everybody's opinion
Sounds great to me!

Solving these issues in this way seems to have a lot of beneficial
side-effects... Moving the configuration from  the application config
to an ApplicationConfiguration class doesn't seem to be a big deal to
me. Ofcourse it can be unconvenient for some people, but i don't think
those 'efforts' will be to much if you look at the results you get
from it....

I'd say go for it!

Peter's €0.02


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian P. Christian  
View profile  
 More options Dec 28 2007, 4:50 am
From: "Ian P. Christian" <poo...@pookey.co.uk>
Date: Fri, 28 Dec 2007 09:50:38 +0000
Local: Fri, Dec 28 2007 4:50 am
Subject: Re: [symfony-devs] symfony 1.1 : I really need everybody's opinion

Fabien POTENCIER wrote:
> Hi all,

> The symfony 1.1 release comes along nicely but I still have 2
> major/blocking problems which need to be fixed before 1.1-beta1 and I
> have no simple solution:

>   * Plugins are unable to register routes (#2408)
>   * It's not possible to connect listeners early on

Certainly the first issue here is something that's critical to sf1.1
being released - I've not played with the dispatcher in 1.1 so I can't
really comment on the second.

Other then a change to the controller, what are the downsides of your
suggestions?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xavier Lacot  
View profile  
 More options Dec 28 2007, 5:04 am
From: Xavier Lacot <xla...@clever-age.com>
Date: Fri, 28 Dec 2007 11:04:56 +0100
Local: Fri, Dec 28 2007 5:04 am
Subject: Re: [symfony-devs] symfony 1.1 : I really need everybody's opinion
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Fabien,

This sounds great to me, given the number of improvements
sfConfiguration would allow. Apart from the changes in the controlers,
which other disadvantages would imply the solution that you propose ?
For how long would these changes postpone symfony 1.1 ?

> * Initialization is separated in 2 different phases: The
> initialization of the framework (sfConfiguration) and the
> initialization of a request (sfContext). It eases testing a lot.

- From my humble point of view, this is the most decisive point, as such a
separation /makes sense/. So, go for it !

xavier

Fabien POTENCIER a écrit :

- --
Xavier Lacot         http://www.clever-age.com
Clever Age - conseil en architecture technique
Tél: +33 1 53 34 66 10  Fax: +33 1 53 34 65 20

Clever Age vous invite ŕ ses petits-déjeuners
http://www.clever-age.com/actualites/petits-dejeuners/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHdMpHxnFhiMcsYUsRAj25AKDk/XNOnI+ddK+3IbfEqVjBWTdxiQCaA0V9
MvH99IV5Nw0frYBMF3402Mw=
=J2Q/
-----END PGP SIGNATURE-----


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabien POTENCIER  
View profile  
 More options Dec 28 2007, 5:30 am
From: Fabien POTENCIER <fabien.potenc...@symfony-project.com>
Date: Fri, 28 Dec 2007 11:30:40 +0100
Local: Fri, Dec 28 2007 5:30 am
Subject: Re: [symfony-devs] Re: symfony 1.1 : I really need everybody's opinion
The downsides are:

  * symfony 1.1 will take a bit longer to be released as the changes
will need some testing
  * people will have to move their custom changes from config.php to the
new ApplicationConfiguration class (I think this is only marginal)
  * documentation will need to be updated to reflect the changes

Fabien

--
Fabien Potencier
Sensio CEO - symfony lead developer
http://www.sensiolabs.com/
http://www.symfony-project.com/
Sensio Labs
Tél: +33 1 40 99 80 80


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias N.  
View profile  
 More options Dec 28 2007, 6:34 am
From: "Matthias N." <matthias.nothh...@googlemail.com>
Date: Fri, 28 Dec 2007 03:34:46 -0800 (PST)
Local: Fri, Dec 28 2007 6:34 am
Subject: Re: symfony 1.1 : I really need everybody's opinion
Hi Fabien.

we don't have a single (pre-)release of symfony 1.1 yet.
On the other hand: if these things you wrote about are already
implemented and working - why not merging them into sf 1.1?
Your suggestions definately justify a bit more work on upgrading a
project!
Maybe you could even write an upgrade class(?) to update the front
controller scripts?

+ 1 for your suggestions!

Regards,
Matthias

On 28 Dez., 07:52, Fabien POTENCIER <fabien.potenc...@symfony-


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francois Zaninotto  
View profile  
 More options Dec 28 2007, 6:39 am
From: "Francois Zaninotto" <francois.zanino...@symfony-project.com>
Date: Fri, 28 Dec 2007 12:39:44 +0100
Local: Fri, Dec 28 2007 6:39 am
Subject: Re: [symfony-devs] Re: symfony 1.1 : I really need everybody's opinion
Hi Fabien,

Can the new configuration object be included without touching the
rendering filter and the rest of the filter chain?

Francois

2007/12/28, Fabien POTENCIER <fabien.potenc...@symfony-project.com>:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias N.  
View profile  
 More options Dec 28 2007, 6:43 am
From: "Matthias N." <matthias.nothh...@googlemail.com>
Date: Fri, 28 Dec 2007 03:43:46 -0800 (PST)
Local: Fri, Dec 28 2007 6:43 am
Subject: Re: symfony 1.1 : I really need everybody's opinion

On 28 Dez., 11:30, Fabien POTENCIER <fabien.potenc...@symfony-

project.com> wrote:
> The downsides are:

>   * symfony 1.1 will take a bit longer to be released as the changes
> will need some testing
>   * people will have to move their custom changes from config.php to the
> new ApplicationConfiguration class (I think this is only marginal)
>   * documentation will need to be updated to reflect the changes

suggestions?

IMHO only the first point is the problem. No idea for the routing
problem? I think the event problem is not that critical..
What do you think means "a bit longer"? A week, a month, 3 months?
Anyway, it seems that the changes really make sense, so... to hell
with some more time. ;-)

Regards,
Matthias


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian P. Christian  
View profile  
 More options Dec 28 2007, 7:01 am
From: "Ian P. Christian" <poo...@pookey.co.uk>
Date: Fri, 28 Dec 2007 12:01:45 +0000
Local: Fri, Dec 28 2007 7:01 am
Subject: Re: [symfony-devs] Re: symfony 1.1 : I really need everybody's opinion

Matthias N. wrote:
> Anyway, it seems that the changes really make sense, so... to hell
> with some more time. ;-)

I agree - even if the extra testing will take some time, I think it
needs doing - these changes are pretty critical - and if they were goign
to get done in sf1.2 anyway... well, we might as well :)

Thanks for your work Fabien


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabien POTENCIER  
View profile  
 More options Dec 28 2007, 7:33 am
From: Fabien POTENCIER <fabien.potenc...@symfony-project.com>
Date: Fri, 28 Dec 2007 13:33:49 +0100
Local: Fri, Dec 28 2007 7:33 am
Subject: Re: [symfony-devs] Re: symfony 1.1 : I really need everybody's opinion
It makes sense to also remove the rendering filter, but we can leave it
for 1.1 and make this step in 1.2 The only problem with doing it with
1.2 is people will have to upgrade their front controller to upgrade to
1.2 (the upgrade task can do it automatically).

Fabien

--
Fabien Potencier
Sensio CEO - symfony lead developer
http://www.sensiolabs.com/
http://www.symfony-project.com/
Sensio Labs
Tél: +33 1 40 99 80 80


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabien POTENCIER  
View profile  
 More options Dec 28 2007, 7:34 am
From: Fabien POTENCIER <fabien.potenc...@symfony-project.com>
Date: Fri, 28 Dec 2007 13:34:30 +0100
Local: Fri, Dec 28 2007 7:34 am
Subject: Re: [symfony-devs] Re: symfony 1.1 : I really need everybody's opinion
Definitely not 3 months. 1 month seems doable.

Fabien
--
Fabien Potencier
Sensio CEO - symfony lead developer
http://www.sensiolabs.com/
http://www.symfony-project.com/
Sensio Labs
Tél: +33 1 40 99 80 80


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charley Tiggs  
View profile  
 More options Dec 28 2007, 9:35 am
From: Charley Tiggs <char...@cisprint.com>
Date: Fri, 28 Dec 2007 08:35:56 -0600
Local: Fri, Dec 28 2007 9:35 am
Subject: Re: [symfony-devs] Re: symfony 1.1 : I really need everybody's opinion

fabien.potenc...@symfony-project.com said on Friday, December 28, 2007:

>The downsides are:

>  * symfony 1.1 will take a bit longer to be released as the changes
>will need some testing
>  * people will have to move their custom changes from config.php to
the
>new ApplicationConfiguration class (I think this is only marginal)
>  * documentation will need to be updated to reflect the changes

I don't see these as significant downsides.  I'd rather see you take
more time and resolve these issues than have to spend time hacking
around the problem in 1.1, only to do it correctly in 1.2.  The changes
make sense in that they seem to increase functionality as well as fixing
some broken functionality.  It then becomes a decision of the developers
as to when they will spend the time upgrading to 1.1 or 1.2.

Thanks for all of your hard work Fabien!  Much appreciated!

Charley


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
naholyr  
View profile  
 More options Dec 28 2007, 12:32 pm
From: naholyr <naho...@gmail.com>
Date: Fri, 28 Dec 2007 09:32:26 -0800 (PST)
Local: Fri, Dec 28 2007 12:32 pm
Subject: Re: symfony 1.1 : I really need everybody's opinion
Given the benefits, the constraints seem very light.
And as it's been said before, the existence of a global Configuration
class would have a lot of good side-effects, and may solve more
problems you didn't touch yet ;)

I think it's not only a great idea, but even a needed feature ;)

On 28 déc, 15:35, Charley Tiggs <char...@cisprint.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Vondrick  
View profile  
 More options Dec 28 2007, 1:27 pm
From: Carl Vondrick <c...@carlsoft.net>
Date: Fri, 28 Dec 2007 10:27:30 -0800
Local: Fri, Dec 28 2007 1:27 pm
Subject: Re: [symfony-devs] Re: symfony 1.1 : I really need everybody's opinion

On Friday, December 28, 2007, Fabien POTENCIER wrote:
> Definitely not 3 months. 1 month seems doable.

I think sfConfiguration should be implemented in 1.1.  If you are going to
break compatibility, this is the time to do it.  And it makes the eventual
upgrade to 1.2 one step easier.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Koopmanschap  
View profile  
 More options Dec 29 2007, 5:11 pm
From: Stefan Koopmanschap <ste...@ibuildings.nl>
Date: Sat, 29 Dec 2007 14:11:05 -0800 (PST)
Local: Sat, Dec 29 2007 5:11 pm
Subject: Re: symfony 1.1 : I really need everybody's opinion
Hi Fabien,

All I see if very positive changes. So it delays the release a bit
longer, I think most people can live with that.

The only thing I (only slightly) worry about is that the upgrade path
will be slightly harder. Yet, even that does not seem to be very
problematic. So all I can say is: yes, go for it. :)

Stefan

On Dec 28, 7:52 am, Fabien POTENCIER <fabien.potenc...@symfony-


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dustin Whittle  
View profile  
 More options Jan 1 2008, 5:53 pm
From: Dustin Whittle <dustin.whit...@gmail.com>
Date: Tue, 1 Jan 2008 14:53:58 -0800 (PST)
Local: Tues, Jan 1 2008 5:53 pm
Subject: Re: symfony 1.1 : I really need everybody's opinion
+1 for this in 1.1... This sounds ideal.. It provides better
extensibility (dimensions concept) and better separation for testing.

- Dustin

On Dec 27 2007, 10:52 pm, Fabien POTENCIER <fabien.potenc...@symfony-


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alistair Stead  
View profile  
 More options Jan 2 2008, 4:22 am
From: "Alistair Stead" <threethirdsf...@googlemail.com>
Date: Wed, 2 Jan 2008 09:22:18 +0000
Local: Wed, Jan 2 2008 4:22 am
Subject: Re: [symfony-devs] Re: symfony 1.1 : I really need everybody's opinion

+1 This would allow me to achieve some of the functionality I have been
trying to build for a multi site CMS solution

On 01/01/2008, Dustin Whittle <dustin.whit...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
weaverryan  
View profile  
 More options Jan 6 2008, 6:54 pm
From: weaverryan <weaverr...@gmail.com>
Date: Sun, 6 Jan 2008 15:54:50 -0800 (PST)
Local: Sun, Jan 6 2008 6:54 pm
Subject: Re: symfony 1.1 : I really need everybody's opinion
+1 I just ran into the problem of not being able to prepend my routes
from my plugins - I hate it! (but I love everything else 1.1). I agree
with Carl Vondrick: if we're breaking compatability, let's do it now.
Plus, I can think of no good solution to the registering routes of
plugins, except something that would be messy and weak, and then just
be changed again on the next release.

I REALLY think we should push this.

On Jan 2, 4:22 am, "Alistair Stead" <threethirdsf...@googlemail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
b7kich  
View profile  
 More options Jan 9 2008, 3:29 am
From: b7kich <c...@ikonodigital.de>
Date: Wed, 9 Jan 2008 00:29:38 -0800 (PST)
Local: Wed, Jan 9 2008 3:29 am
Subject: Re: symfony 1.1 : I really need everybody's opinion
Please put it in the 1.1 release. Since you already have a solution,
the question is about timing.
I personally am waiting for Propel 1.3 but you want to give the early
adopters and plugin developers a head start.

In general do what fragments the user base least in the long run.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Vondrick  
View profile  
 More options Jan 19 2008, 1:56 am
From: Carl Vondrick <c...@carlsoft.net>
Date: Fri, 18 Jan 2008 22:56:41 -0800
Local: Sat, Jan 19 2008 1:56 am
Subject: Re: [symfony-devs] symfony 1.1 : I really need everybody's opinion
On Thursday, December 27, 2007, Fabien POTENCIER wrote:
> The symfony 1.1 release comes along nicely but I still have 2
> major/blocking problems which need to be fixed before 1.1-beta1 and I
> have no simple solution:

Hi,
Another blocking issue I've discovered (that I presume would be fixed by
sfConfiguration) is that symfony serves a white screen if it cannot find a
matching route for a URL.  This is because an exception is thrown in the
first sfContext::getInstance(), which is not in the main try/catch block.

I can create a ticket on the trac about this, but it seems like it would be
automatically solved once sfConfiguration rolls in.

Carl


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian P. Christian  
View profile  
 More options Feb 6 2008, 6:57 am
From: "Ian P. Christian" <poo...@pookey.co.uk>
Date: Wed, 06 Feb 2008 11:57:41 +0000
Local: Wed, Feb 6 2008 6:57 am
Subject: Re: [symfony-devs] symfony 1.1 : I really need everybody's opinion

Fabien POTENCIER wrote:
> Hi all,

> The symfony 1.1 release comes along nicely but I still have 2
> major/blocking problems which need to be fixed before 1.1-beta1 and I
> have no simple solution:

>   * Plugins are unable to register routes (#2408)
>   * It's not possible to connect listeners early on

Hi Fabien,

Do you have any plans to make these changes soon?

I'm quite in need of them for an existing project :)

Thanks,

--

Ian P. Christian ~ http://pookey.co.uk


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabien POTENCIER  
View profile  
 More options Feb 6 2008, 7:55 am
From: Fabien POTENCIER <fabien.potenc...@symfony-project.com>
Date: Wed, 06 Feb 2008 13:55:01 +0100
Local: Wed, Feb 6 2008 7:55 am
Subject: Re: [symfony-devs] Re: symfony 1.1 : I really need everybody's opinion
All recent commits are to prepare the introduction of the
sfConfiguration classes. Not everything is quite ready yet for commit.

I hope to commit a first version (without plugin support) soon.

Fabien

--
Fabien Potencier
Sensio CEO - symfony lead developer
http://www.sensiolabs.com/
http://www.symfony-project.com/
Sensio Labs
Tél: +33 1 40 99 80 80


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
heathd  
View profile  
 More options Feb 20 2008, 6:51 am
From: heathd <dgheat...@gmail.com>
Date: Wed, 20 Feb 2008 03:51:30 -0800 (PST)
Local: Wed, Feb 20 2008 6:51 am
Subject: Re: symfony 1.1 : I really need everybody's opinion
Hi Fabien,

I'm coming late to this discussion, but hope I can add a small
contribution. I've only recently started using Symfony, but I'm very
impressed so far.

On Dec 28 2007, 6:52 am, Fabien POTENCIER <fabien.potenc...@symfony-

project.com> wrote:
> ...
> The solution is to introduce a new object called sfConfiguration. This
> object is responsible for the configuration of an application. The
> sfContext is not a singleton anymore and now takes a sfConfiguration
> object as an argument. This fixes a lot of things:
> ...

This sounds a lot like the inversion of control/dependency injection
pattern. Martin Fowler wrote an excellent paper summarising the
pattern:

http://www.martinfowler.com/articles/injection.html

In short it's a way of eliminating the common situation of components
having dependencies on a framework. Instead, all dependencies are
passed as constructor arguments to components (or possibly through
setters). If the components are used within a container, then the
container manages the provision of dependencies, but the components
can also be used and tested without reference to the framework or
container.

There was a port done some time ago of PicoContainer to PHP by Pawel
Kozlowski, but I couldn't find out whether it's still actively
maintained. In any case once you've understood the pattern and the
principles then it's very easy to implement. As I said, I think you've
arrived at a very similar solution. Maybe reading Fowler's paper would
help to confirm your design decisions.

Best regards,

David


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas Perriault  
View profile  
 More options Feb 20 2008, 11:06 am
From: "Nicolas Perriault" <nperria...@clever-age.com>
Date: Wed, 20 Feb 2008 17:06:11 +0100
Local: Wed, Feb 20 2008 11:06 am
Subject: Re: [symfony-devs] Re: symfony 1.1 : I really need everybody's opinion

On Wed, Feb 20, 2008 at 12:51 PM, heathd <dgheat...@gmail.com> wrote:
>  In short it's a way of eliminating the common situation of components
>  having dependencies on a framework. Instead, all dependencies are
>  passed as constructor arguments to components (or possibly through
>  setters). If the components are used within a container, then the
>  container manages the provision of dependencies, but the components
>  can also be used and tested without reference to the framework or
>  container.

Stubbles framework seems to have a pretty implementation of ioc:
http://www.stubbles.net/wiki/Docs/IOC

++

--
Nicolas Perriault http://www.clever-age.com
Clever Age - conseil en architecture technique
GSM: +33 6 60 92 08 67 Tél: +33 1 53 34 66 10


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 36   Newer >
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google