Skip to content

Commit

Permalink
Add Attribute and property (build 453, release 2.7.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Mar 25, 2022
1 parent 56d2a52 commit d3f4ade
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ZM/Annotation/Swoole/OnTick.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace ZM\Annotation\Swoole;

use Attribute;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
use Doctrine\Common\Annotations\Annotation\Required;
use Doctrine\Common\Annotations\Annotation\Target;
Expand All @@ -16,6 +17,7 @@
* @Target("METHOD")
* @since 1.2
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
class OnTick extends AnnotationBase
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/ZM/Annotation/Swoole/SwooleHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace ZM\Annotation\Swoole;

use Attribute;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
use Doctrine\Common\Annotations\Annotation\Required;
use Doctrine\Common\Annotations\Annotation\Target;
Expand All @@ -15,6 +16,7 @@
* @NamedArgumentConstructor()
* @Target("ALL")
*/
#[Attribute(Attribute::TARGET_ALL)]
class SwooleHandler extends AnnotationBase
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/ZM/ConsoleApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

class ConsoleApplication extends Application
{
public const VERSION_ID = 452;
public const VERSION_ID = 453;

public const VERSION = '2.7.3';

Expand Down
5 changes: 5 additions & 0 deletions src/ZM/Http/MiddlewareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

namespace ZM\Http;

use ZM\Annotation\Http\Middleware;

/**
* @property Middleware $middleware
*/
interface MiddlewareInterface
{
}

0 comments on commit d3f4ade

Please sign in to comment.