PHP Classes

File: example/test.php

Recommend this page to a friend!
  Packages of Samuel Adeshina   PHP Dependency Injection Container   example/test.php   Download  
File: example/test.php
Role: Example script
Content type: text/plain
Description: run this file without an autoloader
Class: PHP Dependency Injection Container
Autoload dependent objects accessing variables
Author: By
Last change:
Date: 11 years ago
Size: 386 bytes
 

 

Contents

Class file image Download
<?php
    require_once("../src/Injector.php");
    //require_once("classTest.php");
    class test extends \Injector
    {
        public function __construct()
        {
        }

        public function showMethodOne()
        {
            $this->test_testest_classTest->methodOne();
            echo "<br/>";
            $this->test_testest_IAmAClass->AndIAmAMethod("ILoveTheIdeaOfBeingLazy");
        }
    }

    $test = new test();
    $test->showMethodOne();
?>