Skip to content

Releases: ytake/Laravel-Aspect

bugfix

04 Aug 18:55
Compare
Choose a tag to compare
Merge pull request #29 from ytake/feature-some-fixed

added rollback

added @Async

15 May 17:44
Compare
Choose a tag to compare

@async

Methods annotated with @async will return immediately to its caller while its operation executes asynchronously.

Methods annotated with @async must strictly have a void

required pcntl extension
PHP:PCNTL - Process Control

use Ytake\LaravelAspect\Annotation\Async;

class AspectAsync
{
    /**
     * @Async
     * @param null $id
     */
    public function asyncProcess()
    {
        sleep(10);
    }
}

bug fixed / supported ignore annotations

27 Apr 18:07
Compare
Choose a tag to compare
Merge pull request #26 from ytake/feature-ignore-annotations

Feature ignore annotations

bug fixed

24 Apr 17:08
Compare
Choose a tag to compare
Merge pull request #25 from ytake/feature-supported-lumen

supported contextual bindings

added LogExceptions

17 Mar 17:26
Compare
Choose a tag to compare
    /**
     * @LogExceptions
     * @param null $id
     * @return null
     * @throws \Exception
     */
    public function normalLog($id = null)
    {
        return $id;
    }

    /**
     * @LogExceptions(expect="\LogicException")
     */
    public function expectException()
    {
        throw new \LogicException;
    }

    /**
     * @LogExceptions(expect="\LogicException")
     */
    public function expectNoException()
    {
        throw new FileNotFoundException(__DIR__);
    }

1.1.0: Merge pull request #23 from ytake/develop

29 Feb 17:28
Compare
Choose a tag to compare

added Loggable

23 Dec 12:46
Compare
Choose a tag to compare

@loggable

for logger(illuminate/log, monolog)

  • option
params description
value log level (default: \Monolog\Logger::INFO) should Monolog Constants
skipResult method result output to log
name log name prefix(default: Loggable)
use Ytake\LaravelAspect\Annotation\Loggable;

class AspectLoggable
{
    /**
     * @Loggable
     * @param null $id
     * @return null
     */
    public function normalLog($id = null)
    {
        return $id;
    }
}

sample)

[2015-12-23 08:15:30] testing.INFO: Loggable:__Test\AspectLoggable.normalLog {"args":{"id":1},"result":1,"time":0.000259876251221}

0.2.2: Merge pull request #15 from ytake/develop

04 Nov 15:59
Compare
Choose a tag to compare

0.2.1: Merge pull request #12 from ytake/bug-patch1

25 Oct 17:10
Compare
Choose a tag to compare

breaking changes

23 Oct 09:42
Compare
Choose a tag to compare
Merge pull request #11 from ytake/feature-change-dependency

Feature change dependency