Skip to content

Commit 6ccd90e

Browse files
committed
Delete CallExit function for After plugin logic execution
1 parent 0f71c20 commit 6ccd90e

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lib/internal/Magento/Framework/App/Response/Http/FileFactory.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,7 @@ public function create(
9999
if (!empty($content['rm'])) {
100100
$dir->delete($file);
101101
}
102-
$this->callExit();
103102
}
104103
return $this->_response;
105104
}
106-
107-
/**
108-
* Call exit
109-
*
110-
* @return void
111-
* @SuppressWarnings(PHPMD.ExitExpression)
112-
*/
113-
protected function callExit()
114-
{
115-
exit(0);
116-
}
117105
}

lib/internal/Magento/Framework/App/Test/Unit/Response/Http/FileFactoryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ private function getModel()
235235
private function getModelMock()
236236
{
237237
$modelMock = $this->getMockBuilder(\Magento\Framework\App\Response\Http\FileFactory::class)
238-
->setMethods(['callExit'])
239238
->setConstructorArgs(
240239
[
241240
'response' => $this->responseMock,

0 commit comments

Comments
 (0)