Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 95aa9ac

Browse files
Maks3wweierophinney
authored andcommitted
Remove unused attribute configuration
Parameter is keep on constructor for backward compatibility
1 parent 118d3bb commit 95aa9ac

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

src/Application.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ class Application implements
5656
const ERROR_ROUTER_NO_MATCH = 'error-router-no-match';
5757
const ERROR_MIDDLEWARE_CANNOT_DISPATCH = 'error-middleware-cannot-dispatch';
5858

59-
/**
60-
* @var array
61-
*/
62-
protected $configuration = null;
63-
6459
/**
6560
* Default application event listeners
6661
*
@@ -104,20 +99,17 @@ class Application implements
10499
/**
105100
* Constructor
106101
*
107-
* @param mixed $configuration
108102
* @param ServiceManager $serviceManager
109103
* @param null|EventManagerInterface $events
110104
* @param null|RequestInterface $request
111105
* @param null|ResponseInterface $response
112106
*/
113107
public function __construct(
114-
$configuration,
115108
ServiceManager $serviceManager,
116109
EventManagerInterface $events = null,
117110
RequestInterface $request = null,
118111
ResponseInterface $response = null
119112
) {
120-
$this->configuration = $configuration;
121113
$this->serviceManager = $serviceManager;
122114
$this->setEventManager($events ?: $serviceManager->get('EventManager'));
123115
$this->request = $request ?: $serviceManager->get('Request');

src/Service/ApplicationFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class ApplicationFactory implements FactoryInterface
3030
public function __invoke(ContainerInterface $container, $name, array $options = null)
3131
{
3232
return new Application(
33-
$container->get('config'),
3433
$container,
3534
$container->get('EventManager'),
3635
$container->get('Request'),

test/View/DefaultRendereringStrategyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function testTriggersRenderErrorEventInCaseOfRenderingException()
156156
],
157157
]))->configureServiceManager($services);
158158

159-
$application = new Application([], $services, $services->get('EventManager'), $this->request, $this->response);
159+
$application = new Application($services, $services->get('EventManager'), $this->request, $this->response);
160160
$this->event->setApplication($application);
161161

162162
$test = (object) ['flag' => false];

0 commit comments

Comments
 (0)