Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. /* Cat.php */
  2. <?php
  3.  
  4. namespace MyCompany\Animals;
  5.  
  6.  
  7. class Cat
  8. {
  9.     function __construct() {
  10.         echo 'Cat created!';
  11.     }
  12. }
  13.  
  14. /* Composer.json */
  15. {
  16.   "autoload": {
  17.     "ps-4": {
  18.       "MyCompany\\": "app/MyCompany"
  19.     }
  20.   }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement