Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Commit

Permalink
refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviMenezes committed Oct 6, 2019
1 parent d613605 commit 4e6310b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Helpers/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
use Dvi\Support\Collection;
use Dvi\Support\Http\Request;
use Dvi\Support\Http\Web;
use Dvi\Support\Notify;
use Dvi\Component\TemplateEngine\TemplateEngine;
use Dvi\Component\TemplateEngine\BladeOneInstance;
use eftec\bladeone\BladeOne;
use Dvi\Support\View\View;

function collection($value)
{
Expand Down Expand Up @@ -209,9 +206,7 @@ function notEmpty($value)

function view(string $view, array $data = null)
{
$blade = new BladeOne(VIEW_PATH, VIEW_CACHE_PATH, BLADE_MODE);
$templateEngine = TemplateEngine::instance(BladeOneInstance::class);
echo $blade->run($view, $data);
echo View::run($view, $data);
}

function notityComponentWithViolation()
Expand Down

0 comments on commit 4e6310b

Please sign in to comment.