-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
# Conflicts: # bundle/Spec/CirclicalAutoWire/Service/RouterServiceSpec.php
- Loading branch information
Showing
6 changed files
with
108 additions
and
4 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
21 changes: 21 additions & 0 deletions
21
bundle/Spec/CirclicalAutoWire/Annotations/OtherAnnotation.php
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,21 @@ | ||
<?php | ||
|
||
namespace Spec\CirclicalAutoWire\Annotations; | ||
|
||
/** | ||
* Class OtherAnnotation | ||
* | ||
* @package Spec\CirclicalAutoWire\Annotations | ||
* @author Michał Makaruk <[email protected]> | ||
* | ||
* @Annotation | ||
* @Target({"METHOD","CLASS"}) | ||
*/ | ||
final class OtherAnnotation | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $value; | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
bundle/Spec/CirclicalAutoWire/Controller/OtherAnnotationsController.php
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,32 @@ | ||
<?php | ||
|
||
namespace Spec\CirclicalAutoWire\Controller; | ||
|
||
use Zend\Mvc\Controller\AbstractActionController; | ||
use CirclicalAutoWire\Annotations\Route; | ||
use Spec\CirclicalAutoWire\Annotations\OtherAnnotation; | ||
|
||
/** | ||
* Class OtherAnnotationsTypeErrorController | ||
* @package Spec\CirclicalAutoWire\Controller | ||
* | ||
* @Route("/foobar") | ||
*/ | ||
class OtherAnnotationsController extends AbstractActionController | ||
{ | ||
/** | ||
* @Route("/") | ||
*/ | ||
public function fooAction() | ||
{ | ||
} | ||
|
||
/** | ||
* @OtherAnnotation | ||
* @Route("/ok") | ||
*/ | ||
public function willItFailAction() | ||
{ | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
bundle/Spec/CirclicalAutoWire/Controller/OtherAnnotationsTypeErrorController.php
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,24 @@ | ||
<?php | ||
|
||
namespace Spec\CirclicalAutoWire\Controller; | ||
|
||
use Zend\Mvc\Controller\AbstractActionController; | ||
use CirclicalAutoWire\Annotations\Route; | ||
use Spec\CirclicalAutoWire\Annotations\OtherAnnotation; | ||
|
||
/** | ||
* Class OtherAnnotationsTypeErrorController | ||
* @package Spec\CirclicalAutoWire\Controller | ||
* | ||
*/ | ||
class OtherAnnotationsTypeErrorController extends AbstractActionController | ||
{ | ||
/** | ||
* @OtherAnnotation | ||
* @Route("/will-it-fail") | ||
*/ | ||
public function willItFailAction() | ||
{ | ||
} | ||
|
||
} |
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