Add trait`s support to AutoloadBuilder.

This commit is contained in:
Alexander Demidov
2013-09-12 12:08:12 +04:00
parent f9de8ee3bc
commit 4b31df52c3

View File

@ -22,7 +22,7 @@ class AutoloadBuilder
protected $handler;
protected $regex = '/\n(abstract |final )?(class|interface) ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)/';
protected $regex = '/\n(abstract |final )?(class|interface|trait) ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)/';
public function __construct($autoload, $dirs = array(), $exclude = array())
{