Statistics
1211
10
0
17d
Badges
Tags
utils

Arachne/EntityLoader

Build Status Coverage Status SensioLabs Insight VersionEye 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

  • v0.12.0 v0.12.0

    • Use contributte/cache.
  • v0.11.0 v0.11.0

    • Use contributte/event-dispatcher.
    • Refactor to use typehints instead of annotations.
    • Refactor FilterInInterface and FilterOutInterface.
    • Update to PHP 7.1.
    • Use PHPStan.
  • v0.10.2 v0.10.2

    • Use RouterWrapper automatically
  • v0.10.1 v0.10.1

    • Add SecuredLinksPresenterTrait to fix compatibility with nextras/secured-links
    • Increase code coverage
    • Improve documentation
  • v0.10.0 v0.10.0

    • Remove support for kdyby/events
    • Replace arachne/di-helpers with arachne/service-collections
    • Rewrite tests using eloquent/phony
  • v0.9.5 v0.9.5

    • Remove usage of magic __get method
  • v0.9.4 v0.9.4

    • Fix bug with sub-components
    • Improve documentation
  • v0.9.3 v0.9.3

    • Fix possible PHP errors using more strict filters
  • v0.9.2 v0.9.2

    • Allow oops/cache-factory v3.0
  • v0.9.1 v0.9.1

    • Fix compatibility with nette/application v2.4
    • Allow oops/cache-factory v2.0
  • v0.9.0 v0.9.0

    • Add support for arachne/event-dispatcher
    • Change storeRequest & restoreRequest to work without user
    • Remove Nette\Object

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com