PHP Classes

File: tests/classes/Acme/Components/TestComponentA.php

Recommend this page to a friend!
  Classes of Emmanuel Antico   Injector   tests/classes/Acme/Components/TestComponentA.php   Download  
File: tests/classes/Acme/Components/TestComponentA.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Injector
Inject dependencies defined in annotation comments
Author: By
Last change:
Date: 9 years ago
Size: 231 bytes
 

Contents

Class file image Download
<?php
namespace Acme\Components;

use
Acme\Services\MailService;

class
TestComponentA {
    public
$mail;
   
   
/**
     * @inject.param $service mail
     */
   
public function __construct(MailService $service) {
       
$this->mail = $service;
    }
}