-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAGETWO-35920: [GITHUB] Moves common code to all auto-generated Inter…
…ceptor classes into a trait #1156 Add interface for Interceptor so Chain can reference it.
- Loading branch information
Showing
5 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
lib/internal/Magento/Framework/Interception/InterceptorInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Copyright © 2015 Magento. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
namespace Magento\Framework\Interception; | ||
|
||
/** | ||
* Interface for any class that is intercepting another Magento class. | ||
* | ||
* This interface exposes the parent method of the interception class, which allows the caller to bypass | ||
* the interception logic. | ||
*/ | ||
interface InterceptorInterface | ||
{ | ||
/** | ||
* Calls parent class method | ||
* | ||
* @param string $method | ||
* @param array $arguments | ||
* @return mixed | ||
*/ | ||
public function ___callParent($method, array $arguments); | ||
} |