loadServices: tighten up file match regex
authorElliott Eggleston <ejegg@ejegg.com>
Fri, 24 Jan 2020 21:28:57 +0000 (16:28 -0500)
committerElliott Eggleston <ejegg@ejegg.com>
Fri, 24 Jan 2020 21:45:21 +0000 (16:45 -0500)
commit733f2b353ccbed7994c7ef1aa911b53dd06ca3c1
tree07c09fff1bb5917bf8047bfb973438da0d1e8cdd
parent84bed197888038cce6d1831fd37f79dc1f5d59e7
loadServices: tighten up file match regex

Before: Civi code living under a path containing the characters php
(such as ~/src/php/civicrm) will crash trying to load services with
a message like the following:
   ReflectionException: Class Civi\Api4\Service\Spec\Provider\src
   does not exist in ReflectionClass->__construct()

After: Civi loads services normally no matter what the enclosing path
CRM/Api4/Services.php