[PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Hello people, I want to share with you a simple and small Dependency Injector made for me. https://github.com/abloos/Sofia Regards -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar

Re: [PHP] Static utility class?

2013-09-05 Thread Robert Cummings
On 13-09-05 02:27 PM, Micky Hulse wrote: On Wed, Sep 4, 2013 at 11:07 PM, Robert Cummings wrote: I'll second Rodrigo's opinion, but would like to comment that the name of the class is misleading since it's called "Singleton". The singleton pattern is used when you only ever want one instantiati

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Paul M Foster
On Thu, Sep 05, 2013 at 04:19:18PM -0400, Bastien Koert wrote: > Jee, that should have been a friday comment..."how does your dic standout" Don't send emails like that to the list when I've got a mouthful of water! It all came out my nose! ;-} Paul -- Paul M. Foster http://noferblatz.com http:

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Thanks Sorin, I will do that and I will have more care the next time. Regards 2013/9/5 Sorin Badea > Juan, the problem with this list is that that there are too damn many dumb > questions. You did something nice but it doesn't stand out. You can check > Symfony2 DiC. You can use it as a stand

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Sorin Badea
Juan, the problem with this list is that that there are too damn many dumb questions. You did something nice but it doesn't stand out. You can check Symfony2 DiC. You can use it as a stand alone component. On Thu, Sep 5, 2013 at 11:30 PM, Juan Sebastian Scatularo < sebastianscatul...@gmail.com> w

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Sorin Badea
There are few tutorials about home made dic. How does your dic stand out from the crowd ? Regards. On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo < sebastianscatul...@gmail.com> wrote: > Hello people, I want to share with you a simple and small Dependency > Injector made for me. > > h

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread David Harkness
On Thu, Sep 5, 2013 at 1:40 PM, Juan Sebastian Scatularo < sebastianscatul...@gmail.com> wrote: > Thanks Sorin, I will do that and I will have more care the next time. You can also check out Pimple [1] by the creator of the Symfony Framework. Peace, David [1] http://pimple.sensiolabs.org/

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Marc Guay
> Thanks Sorin, I will do that and I will have more care the next time. You have no reason to apologize. You shared a project you made by yourself, way to go. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Sorry guys if disturbed. 2013/9/5 Bastien Koert > Jee, that should have been a friday comment..."how does your dic standout" > > > On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea wrote: > >> There are few tutorials about home made dic. How does your dic stand out >> from the crowd ? >> >> Regards.

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Bastien Koert
Jee, that should have been a friday comment..."how does your dic standout" On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea wrote: > There are few tutorials about home made dic. How does your dic stand out > from the crowd ? > > Regards. > > On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo

Re: [PHP] Static utility class?

2013-09-05 Thread Micky Hulse
On Thu, Sep 5, 2013 at 12:15 PM, Robert Cummings wrote: > Probably sufficient (and easier for typing) to just call it Utility since it > follows the pattern but isn't the pattern itself :) Good call! Updated the example code. Thanks again! I really appreciate the help. :) Cheers, Micky -- PHP

Re: [PHP] Static utility class?

2013-09-05 Thread Micky Hulse
On Wed, Sep 4, 2013 at 11:07 PM, Robert Cummings wrote: > I'll second Rodrigo's opinion, but would like to comment that the name of > the class is misleading since it's called "Singleton". The singleton pattern > is used when you only ever want one instantiation of a class. In your case > you are

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-05 Thread Grant
>> I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the >> opcache is disabled. Someone filed a piwik bug but was told it's a >> php bug: >> >> http://dev.piwik.org/trac/ticket/4093 >> >> - Grant > > Is this a known issue? > > - Grant Is there anything I can do? - Grant -- PH