Skip to content

Conversation

@wardforthmann
Copy link

The findTemplate method was throwing a deprecation warning. Since twig 1.27, it should take a second parameter that determines whether a template not being found returns a "false" or an exception.

nikolay-kozlov and others added 22 commits January 18, 2014 18:07
Changed examples index.twig and layout.twig support Twitter bootstrap 3
update unit test according to to new 1.2 version
Fixed examples/layout/layout.twig
Warning file_get_contents if file does not exist
updated to prc2
Added missing $loader property
jquery.min.js needs to be loaded before bootstrap.min.js
…hrowing deprecation notices

managers that don't have the SL injected cause panic with the latest zend-servicemanager release. See \Zend\Mvc\Service\ServiceManagerConfig

```
// For service locator aware plugin managers that do not have
                // the service locator already injected, inject it, but emit a
                // deprecation notice.
                if ($instance instanceof ServiceLocatorAwareInterface
                    && $instance instanceof AbstractPluginManager
                    && ! $instance->getServiceLocator()
                ) {
                    trigger_error(sprintf(
                        'ServiceLocatorAwareInterface is deprecated and will be removed in version 3.0, along '
                        . 'with the ServiceLocatorAwareInitializer. Please update your %s plugin manager factory '
                        . 'to inject the parent service locator via the constructor.',
                        get_class($instance)
                    ), E_USER_DEPRECATED);
                    $instance->setServiceLocator($container);
                }
```
Inject the service manager here to prevent the latest zend-mvc from throwing deprecation notices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants