Skip to content

Commit

Permalink
Usa configuração para definir o caminho do código legado
Browse files Browse the repository at this point in the history
  • Loading branch information
edersoares committed Sep 5, 2018
1 parent 4f23fa7 commit 0fb8070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/LegacyLinkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class LegacyLinkCommand extends Command
*/
private function createSymbolLink($path)
{
$legacy = '../ieducar/' . $path;
$legacy = '../' . config('legacy.path') . '/' . $path;
$public = public_path($path);

if (is_link($public)) {
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/LegacyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LegacyController extends Controller
*/
private function getLegacyPath()
{
return base_path('ieducar');
return base_path(config('legacy.path'));
}

/**
Expand Down

0 comments on commit 0fb8070

Please sign in to comment.