Dependency Injection using Cygnite IoC Container

Cygnite PHP Framework - "The New Cool Kid"

Cygnite Framework has powerful dependency injection container to resolve your class dependencies at runtime. Dependency injection is a software design pattern that implements inversion of control (IoC). Cygnite IoC Container gives you more flexibility to write powerful, decoupled application.

  • Auto Resolve Your Dependencies -

use Cygnite\Foundation\Application;
use Cygnite\AbstractBaseController;
use Apps\Extensions\Foo;

class HomeController extends AbstractBaseController
{
private $foo;

public function __construct(Foo $foo)
{
$this->foo = $foo;
}
}

Learning new framework is fun. Read more

Cygnite Framework is open source software meaning that anyone can contribute.

Would like to be part of Cygnite growing development team ? Fork or send pull request. You may also share your valuable feedback to improve, in the feedback page.

Framework
Skeleton Application

要查看或添加评论,请登录

Sanjoy Dey的更多文章

  • ?? Make the Hiring Process Better for Everyone

    ?? Make the Hiring Process Better for Everyone

    Job interviews are not just routine steps in a hiring process; for many candidates, they represent hope, growth, and…

  • Shadow DOM vs Virtual DOM

    Shadow DOM vs Virtual DOM

    Let's say we have a web page with two components: a "Header" component and a "Main" component. The "Header" component…

  • Facebook style wall posting using Cygnite PHP Framework, Jquery, Ajax

    Facebook style wall posting using Cygnite PHP Framework, Jquery, Ajax

    Introduction: Are you looking for a social script ? Facebook type comment posting with an MVC architecture. The script…

    8 条评论
  • Install Cygnite using Composer

    Install Cygnite using Composer

    Wondering how to install composer (newbie) to download Cygnite Framework. Here are steps- There are two way to install…

  • How to create custom JQuery plugin?

    How to create custom JQuery plugin?

    Many time we simply do code for the particular project and may be same repetitive functionality again in the next…