Skip to content

Commit

Permalink
Fix infyom.publish:templates
Browse files Browse the repository at this point in the history
It looks like, when fixing issue InfyOmLabs#98, the PublishTemplateCommand was relocated, but the committer missed the use of `__DIR__` in the file, and didn't update the path to account for the additional directory depth, so `php artisan infyom.publish:templates` was only creating empty directories instead of actually publishing anything.  This commit fixes that.
  • Loading branch information
danhunsaker committed Apr 25, 2016
1 parent f5f47a5 commit e9c9beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Publish/PublishTemplateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function handle()
*/
public function publishGeneratorTemplates()
{
$templatesPath = __DIR__.'/../../templates';
$templatesPath = __DIR__.'/../../../templates';

return $this->publishDirectory($templatesPath, $this->templatesDir, 'infyom-generator-templates');
}
Expand Down

0 comments on commit e9c9beb

Please sign in to comment.