Skip to content
Enables object parameters in nette/application.
PHP
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
tests
.coveralls.yml
.editorconfig
.gitattributes
.gitignore
.php_cs
.travis.yml
codeception.yml
composer.json
license.md
phpstan.neon
readme.md
tests.md

readme.md

Arachne/EntityLoader

Build Status Coverage Status Latest stable Downloads this Month License

Enables object parameters in nette/application.

// Without EntityLoader
public function actionEdit($id)
{
	$article = $this->em->getRepository(Article::class)->find($id);
	if (! $article) {
		$this->error(); // 404
	}
	// ...
}

// With EntityLoader
public function actionEdit(Article $article)
{
	// ...
}

Documentation

You can’t perform that action at this time.