タグ

phpとDIに関するrestartrのブックマーク (4)

  • Home

    What is Flow?Flow is a PHP web application framework focussed on Domain-Driven Design and clean code. Based on strong conventions and best practices, it allows you to rapidly create powerful web applications. Created with love by the Neos project. The photo at the top (by Astris1, CC-BY-SA 3.0) shows a Lorimerlite structure, the strongest isotropic truss for resisting compression. Similar to Flow

    Home
    restartr
    restartr 2010/05/15
    FLOW3 brings new concepts to the PHP world. Domain-Driven Design, Dependency Injection and Aspect-Oriented Programming are some of them. And besides some great features we offer a new view on the "how" of software development.
  • On PHP 5.3, Lambda Functions, and Closures | Articles - Fabien Potencier

    PHP 5.3 will have a lot of exciting new features. One of the most important one for me is the introduction of lambda functions and closures support. I won’t talk too much about what lambda functions or closures are, as you can find many good blog posts describing them in great details. To sum up, a lambda function is an anonymous PHP function that can be stored in a variable and passed as an argum

    restartr
    restartr 2009/04/21
    php5.3のclosureとラムダについて。DIのサンプル的なものも。
  • What is Dependency Injection? | Articles - Fabien Potencier

    Note This article is part of a series on Dependency Injection in general and on a lightweight implementation of a Container in PHP in particular: Part 1: What is Dependency Injection?Part 2: Do you need a Dependency Injection Container?Part 3: Introduction to the Symfony Service ContainerPart 4: Symfony Service Container: Using a Builder to create ServicesPart 5: Symfony Service Container: Using X

    restartr
    restartr 2009/03/28
    どこで依存性を注入すべきか、、、
  • 簡単なDIコンテナ - Sooey

    簡単なDIコンテナ 最小のDIコンテナ in PHP - anatoo勉強記より。 DIコンテナがなにやら大仰なものとして勘違いされているような気がしたので、機能を極限まで削ぎ落とした最小のDIコンテナを書いた。 これにはAOPは当然ないし、設定ファイルなどもない。 30行ほどのコードでDIコンテナっぽい動きを示せているところは素晴らしいです。確かにDIコンテナにAOPは必須ではないし、設定ファイルもできればない方がいいですもんね。 ただ、「最初の取っ掛かり」ということで極限まで簡略化されたのでしょうが、異なるコンポーネント間のDependencyをInjectionできないものはDIコンテナではなくて単なるオブジェクトプールのような気がします。簡単なsetterインジェクションをする場合なら、こんな感じでしょうか。 これはこれで設計的にヘンなところが色々ありますが、このくらいのコードだと

  • 1