Skip to content

Instantly share code, notes, and snippets.

@akondas
Created June 16, 2015 22:14
Show Gist options
  • Save akondas/e2f4dddb39b4712953ff to your computer and use it in GitHub Desktop.
Save akondas/e2f4dddb39b4712953ff to your computer and use it in GitHub Desktop.
<?php
// do PHP 5.6
use Framework\Component\ClassA;
use Framework\Component\ClassB as ClassC;
use Framework\Component\OtherComponent\ClassD;
// od PHP 7
use Framework\Component\{
ClassA,
ClassB as ClassC,
OtherComponent\ClassD
};
// można używać też do funkcji i stałych
use Framework\Component\{
ClassA,
function OtherComponent\someFunction,
const OtherComponent\SOME_CONSTANT
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment