Skip to content

Instantly share code, notes, and snippets.

@dcabanaw
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save dcabanaw/a885947172f421f3cbd0 to your computer and use it in GitHub Desktop.

Select an option

Save dcabanaw/a885947172f421f3cbd0 to your computer and use it in GitHub Desktop.
<?php
// example_1
// creates a new Request from the default namespace ie "\Request"
$x = new Request();
// example_2
// creates a new Request from the CorpName\App namespace ie "CorpName\App\Request"
namespace CorpName\App;
$x = new Request();
// example_3
// creates a new Request from the CorpName\App\Stuff namespace ie "CorpName\App\Stuff\Request"
namespace CorpName\App;
use CorpName\App\Stuff\Request;
$x = new Request();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment