Skip to content

Instantly share code, notes, and snippets.

View MihailoJoksimovic's full-sized avatar

Mihailo Joksimovic MihailoJoksimovic

View GitHub Profile
On Tue, Feb 19, 2013 at 3:37 AM, roberto blanko <[email protected]> wrote:
> one problem drives me nuts, since I started working with ZF2 (never worked
> with Version 1):
>
> I'm in need of the service manager all the time. E.g. to access my config
> in config/autoload/local.php via $sm->get('Config'). I need the service
> manager everywhere. Controllers, models, you name it. And I don’t want to
> pass it around by hand, which would make everything ugly.
>
> Now I’ve started to implement ServiceLocatorAwareInterface in most classes.

4.4. Method Arguments

In the argument list, there MUST NOT be a space before each comma, and there MUST be one space after each comma.

Method arguments with default values MUST go at the end of the argument list.

php
Fatal error: Call to undefined method Webedi\BusinessLogic\CatalogPartner::loadUserPartners() in /data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk/modules/extjs/webedi/vendor/Webedi/Webedi/BusinessLogic/CatalogPartner.php on line 103
Call Stack:
0.0000 332052 1. {main}() /data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk/modules/extjs/webedi/frontend/route_request.php:0
0.7704 1479048 2. Webedi\Api\Base->handleRequest() /data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk/modules/extjs/webedi/frontend/route_request.php:31
0.7704 1479152 3. Webedi\Api\CatalogPartner->actionLoadLoggedUserPartnerContacts() /data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk/modules/extjs/webedi/vendor/Webedi/Webedi/Api/Base.php:59
0.7714 1495416 4. Webedi\BusinessLogic\CatalogPartner->loadUserPartnersContacts() /data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk/modules/extjs/webedi/vendor/Webedi/Webedi/Api/CatalogPartner.php:38
Warning: mkdir(): No such fil
<service_manager>
<composites>
<Kurac>
<path>DIG\Libs\Kurac</path>
<params>
<param>5</params>
<params>DbAdapter</params>
</params>
</Kurac>
</composites>
dig@dev:/data1/www/catdevng.office.dig/ssl-htdocs/catdev/mj/trunk$ php mixa_test.php
<?php
return array (
'factories' =>
array (
'Test' => 'function ($serviceManager) {
$form = new SomeModule\\Form\\User();
// Retrieve a dependency from the service manager and inject it!
$form->setInputFilter($serviceManager->get(\'UserInputFilter\'));
mixa@mixa-blackbox:~$ cat /etc/apache2/sites-available/c.com
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName c.com
ServerAlias www.c.com
ServerAlias live.c.com
DocumentRoot /home/mixa/projects/chess/htdocs
php_flag display_errors on
php_flag short_open_tag on
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<imports>
<import resource="services.xml" />
</imports>