From: David Snopek Date: Fri, 21 Jul 2017 15:56:25 +0000 (-0500) Subject: Switch back to old PHP array syntax X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d15f7e1c330886a86c9f8fcbf2baf30a593c973b;p=civicrm-core.git Switch back to old PHP array syntax --- diff --git a/Civi/Core/Container.php b/Civi/Core/Container.php index 25da7ef193..e198621202 100644 --- a/Civi/Core/Container.php +++ b/Civi/Core/Container.php @@ -133,13 +133,13 @@ class Container { 'Civi\Angular\Manager', array() )) - ->setFactory([new Reference(self::SELF), 'createAngularManager']); + ->setFactory(array(new Reference(self::SELF), 'createAngularManager')); $container->setDefinition('dispatcher', new Definition( 'Civi\Core\CiviEventDispatcher', array(new Reference('service_container')) )) - ->setFactory([new Reference(self::SELF), 'createEventDispatcher']); + ->setFactory(array(new Reference(self::SELF), 'createEventDispatcher')); $container->setDefinition('magic_function_provider', new Definition( 'Civi\API\Provider\MagicFunctionProvider', @@ -150,13 +150,13 @@ class Container { 'Civi\API\Kernel', array(new Reference('dispatcher'), new Reference('magic_function_provider')) )) - ->setFactory([new Reference(self::SELF), 'createApiKernel']); + ->setFactory(array(new Reference(self::SELF), 'createApiKernel')); $container->setDefinition('cxn_reg_client', new Definition( 'Civi\Cxn\Rpc\RegistrationClient', array() )) - ->setFactory([new Reference(self::SELF), 'createRegistrationClient']); + ->setFactory(array(new Reference(self::SELF), 'createRegistrationClient')); $container->setDefinition('psr_log', new Definition('CRM_Core_Error_Log', array())); @@ -205,7 +205,7 @@ class Container { $container->setDefinition($name, new Definition( $class )) - ->setFactory([$class, 'singleton']); + ->setFactory(array($class, 'singleton')); } $container->setDefinition('civi_token_compat', new Definition(