Componette

Componette

Arachne

Arachne / EntityLoader v0.12.1

Enables object parameters in nette/application.

download-cloud-line composer require arachne/entity-loader

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

  • v0.12.1 v0.12.1

    • Fix issue with return type self.
    • Remove usage of deprecated method in nette/di.
  • 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
bar-chart-fill

Statistics

download-cloud-fill
5054
star-fill
11
bug-fill
2
flashlight-fill
5.2y
price-tag-2-line

Badges

guide-fill

Dependencies

php (^7.1.0)
contributte/cache (^0.1.0 || ^0.2.0 || ^0.3.0)
contributte/event-dispatcher (^0.3.0 || ^0.4.0 || ^0.5.0)
nette/di (^2.4.10)
nette/http (^2.4.0)
nette/utils (^2.4.0)
Componette Componette felix@nette.org