This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from LaraChimp/master
Autoload config and Docs update
- Loading branch information
Showing
6 changed files
with
200 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Autoload Files. | ||
|-------------------------------------------------------------------------- | ||
| | ||
| You may add files which you want pine annotations to autoload. Annotations | ||
| in these files will be valid for the Reader to parse. Feel free | ||
| to add as many files as you need. | ||
| | ||
*/ | ||
|
||
'autoload_files' => [ | ||
// app_path('Annotations/FooAnnotation.php') | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Autoload Namespaces | ||
|-------------------------------------------------------------------------- | ||
| | ||
| You may add namespaces here which you want pine annotations to autoload. | ||
| Annotations in these namespaces will be valid for the Reader to | ||
| parse. Feel free to add as many files as you need. | ||
| | ||
*/ | ||
|
||
'autoload_namespaces' => [ | ||
// 'App\Annotations' => app_path('Annotations'), | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
namespace LaraChimp\PineAnnotations\Console; | ||
|
||
use Illuminate\Console\GeneratorCommand; | ||
|
||
class MakeAnnotationCommand extends GeneratorCommand | ||
{ | ||
/** | ||
* The console command name. | ||
* | ||
* @var string | ||
*/ | ||
protected $name = 'make:annotation'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Create a new annotation class'; | ||
|
||
/** | ||
* The type of class being generated. | ||
* | ||
* @var string | ||
*/ | ||
protected $type = 'Annotation'; | ||
|
||
/** | ||
* Get the stub file for the generator. | ||
* | ||
* @return string | ||
*/ | ||
public function getStub() | ||
{ | ||
return __DIR__.'/stubs/annotation_all.stub'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace DummyNamespace; | ||
|
||
use Doctrine\Common\Annotations\Annotation\Target; | ||
|
||
/** | ||
* DummyClass annotation. | ||
* | ||
* @Annotation | ||
* @Target("ALL") | ||
*/ | ||
class DummyClass | ||
{ | ||
// | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters