Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Delete component directive
Browse files Browse the repository at this point in the history
Component derective create conflicts with default blade component directive
  • Loading branch information
Ge1i0N authored and arrilot committed Oct 13, 2020
1 parent 1660863 commit 064b8a6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/BladeProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,6 @@ protected static function registerBitrixDirectives()
return '<?php endif; ?>';
};

$compiler->directive('component', function ($expression) {
$expression = rtrim($expression, ')');
$expression = ltrim($expression, '(');

return '<?php $APPLICATION->IncludeComponent('.$expression.'); ?>';
});

$compiler->directive('bxComponent', function ($expression) {
$expression = rtrim($expression, ')');
$expression = ltrim($expression, '(');
Expand Down

0 comments on commit 064b8a6

Please sign in to comment.