This repository has been archived by the owner on Aug 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added method_exists() proxy to Volt template
- Loading branch information
1 parent
cc645a2
commit 241fd6d
Showing
4 changed files
with
37 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* This file is part of Vegas package | ||
* | ||
* @author Radosław Fąfara <radek@amsterdamstandard.com> | ||
* @copyright Amsterdam Standard Sp. Z o.o. | ||
* @homepage http://vegas-cmf.github.io | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Vegas\Mvc\View\Engine\Volt\Helper; | ||
|
||
use Vegas\Mvc\View\Engine\Volt\VoltHelperAbstract; | ||
|
||
/** | ||
* Class MethodExists | ||
* @package Vegas\Mvc\View\Engine\Volt\Helper | ||
*/ | ||
class MethodExists extends VoltHelperAbstract | ||
{ | ||
|
||
/** | ||
* Proxies to method_exists() PHP function | ||
* | ||
* @return string | ||
*/ | ||
public function getHelper() | ||
{ | ||
return 'method_exists'; | ||
} | ||
} |
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