Skip to content

contributte/cookbook

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
2.3
 
 
2.4
 
 
3.0
 
 
 
 
 
 
 
 
 
 
 
 

Nette Cookbook

Build Status


This repository is for education. The main goal is to show how to define services in cool Nette Dependency-Injection Container (nette/di). The examples are written in NEON (take a look at ne-on.org) and in PHP classes called CompilerExtension.

Related blogposts:

Versions

Nette DI PHP
3.0 >=7.1
2.4 >=7.1
2.3 <7.2

Latest reference

Example

NEON

services:
  facebookAuthorizator: 
    class: App\Model\Security\FacebookAuthorizators(@redisCache)
    
  redisCache: Predis\PredisClient

PHP

$builder->addDefinition('facebookAuthorizator')
    ->setClass('App\Model\Security\FacebookAuthorizators(@redisCache)');

$builder->addDefinition('redisCache')
    ->setClass('Predis\PredisClient');

Roadmap

  • [?] Create some online tool using now.sh (@zeit).

About

🎶 Cookbook for Nette Framework (@nette) & Contributte (@contributte). Read it while its HOT!

Topics

Resources

License

MIT, BSD-3-Clause licenses found

Licenses found

MIT
LICENSE
BSD-3-Clause
LICENCE.md

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages