pwweb / artomator

Artomator: Custom commands making life easier for Laravel.
MIT License
4 stars 1 forks source link

artomator:publish fails #30

Closed frankpde closed 4 years ago

frankpde commented 4 years ago

Calling bash artisan artomator:publish fails as a file is not found (see below).

Assumption is that the path is build incorrectly and passed on incorrectly to infyomlabs: /Users/admin/Webserver/blanko/vendor/infyomlabs/artomator/templates/test/api_test_trait.stub

artisan artomator:publish

   ErrorException 

  file_get_contents(/Users/admin/Webserver/blanko/vendor/infyomlabs/artomator/templates/test/api_test_trait.stub): failed to open stream: No such file or directory

  at vendor/pwweb/artomator/src/helpers.php:48
    44|     function get_artomator_template($templateName, $templateType = 'artomator')
    45|     {
    46|         $path = get_artomator_template_file_path($templateName, $templateType);
    47| 
  > 48|         return file_get_contents($path);
    49|     }
    50| }//end if
    51| 
    52| if (false === function_exists('license_authors')) {

      +17 vendor frames 
  18  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
frankpde commented 4 years ago

Workaround: bash artisan infyom:publish

rabrowne85 commented 4 years ago

Reverted to the base package helper file. May still error out but hopefully will capture more failure modes.