Git Product home page Git Product logo

di-service-annotation's People

Contributors

jfilla avatar rozsival avatar szepeviktor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

di-service-annotation's Issues

Tokenizer incorrectly finds class in constats

protected function runUpload(array $files): PresenterResponse
	{
		return $this->runPresenter(
			new PresenterRequest(
				UploadPresenter::class, # problem here
				UploadPresenter::DEFAULT_ACTION,
				[UploadPresenter::LOCALE => 'cs'],
				IRequest::POST,
				[],
				$files
			)
		);
	}

Insufficient cache invalidation

  • service A has fatal error because trait T does not exist
  • run di with cache enabled
  • service A is marked as invalid and stored in cache
  • create trait T (or somehow make service A valid without changing service A file)
  • run di
  • service A is still invalid in cache, because hash of A is still same

Neon options deprecation

nette/neon:3.1.0 deprecates usage of on / off keywords, standard true / false should be used instead.

Add PHP 7.4 property type declaration

Properties in generated inject and component traits could have static types instead of annotations as it's now supported in PHP 7.4.

/**
 * @var SomeService
 */
private $someService;

might change to

private SomeService $someService;

Incorrect name of generated component

I am using default configuration from example and following service:

/**
 * @DIService(params={"%wwwDir%"}, generateComponent=true)
 */
class Test
{
    public User $user;

    /**
     * Service constructor.
     * @param User $user
     */
    public function __construct(User $user)
    {
        $this->user = $user;
    }
}

Expected component name: TestComponent
Generated component name: TestFactoryComponent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.