* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Config; @trigger_error('The '.__NAMESPACE__.'\AutowireServiceResource class is deprecated since Symfony 3.3 and will be removed in 4.0. Use ContainerBuilder::getReflectionClass() instead.', E_USER_DEPRECATED); use Symfony\Component\Config\Resource\SelfCheckingResourceInterface; use Symfony\Component\DependencyInjection\Compiler\AutowirePass; /** * @deprecated since version 3.3, to be removed in 4.0. Use ContainerBuilder::getReflectionClass() instead. */ class AutowireServiceResource implements SelfCheckingResourceInterface, \Serializable { private $class; private $filePath; private $autowiringMetadata = array(); public function __construct($class, $path, array $autowiringMetadata) { $this->class = $class; $this->filePath = $path; $this->autowiringMetadata = $autowiringMetadata; } public function isFresh($timestamp) { if (!file_exists($this->filePath)) { return false; } // has the file *not* been modified? Definitely fresh if (@filemtime($this->filePath) <= $timestamp) { return true; } try { $reflectionClass = new \ReflectionClass($this->class); } catch (\ReflectionException $e) { // the class does not exist anymore! return false; } return (array) $this === (array) AutowirePass::createResourceForClass($reflectionClass); } public function __toString() { return 'service.autowire.'.$this->class; } public function serialize() { return serialize(array($this->class, $this->filePath, $this->autowiringMetadata)); } public function unserialize($serialized) { if (\PHP_VERSION_ID >= 70000) { list($this->class, $this->filePath, $this->autowiringMetadata) = unserialize($serialized, array('allowed_classes' => false)); } else { list($this->class, $this->filePath, $this->autowiringMetadata) = unserialize($serialized); } } /** * @deprecated Implemented for compatibility with Symfony 2.8 */ public function getResource() { return $this->filePath; } } __halt_compiler();----SIGNATURE:----iEPsq2p12fz94MIhowadaaqK+5GhRionZzf3P5qf3xac+sY47KA9sN/1ekfqI1I2eEQax88ho2rMCAw6A9SBVRTn6tfCafnGocC2hUIgFSztRtYq8Ib1u5QtcRAyt0NuppfgEC0EEty/apt9dlUd3uY2sJ4+thH7P17mO/4vmbBv4F1HZ0TW/P+2Gj029ovC5RRBZLLl06k6c2f1+oOrV8EAEqHWS0pQLK5CZDOU5AVJvaI+j4mNEh+gQUZo6BpFxniLQRdpDHq6vSR/PVjzQeZWaTrPyye6fyZoCqCuo2zZOfH91R9mC1ofIXV8cGa+FwImiyI7LU1mPcXnLs7tVyA2Qybwb8QvSu4GUpthGFhagJkEMw9s/yvCRnnzyuuICH9AdAi7QbHND6S3JKO9b+qHwQQSSSio5AXYmhK3pjDmdXc+N2PlXFf/N6Tp387Ma+aiudufl6U8vhTXGR9gySdBGrBtYqzF9KsvFmee+YeRLXap85hI7pqBz9SA0Naakm9sW4fqO8kC5Rh3jpyUei7E4Rhv8qSAuv90EMNWmDtIeiXMjuso3auP4WUBt3ucp/i96R0nRsHEnzrwQ3rqEDzf8qbzzPA1IEjBtzfKrAk8+mRW+dvw3UoRKQ1dYncUZbB8ekLPQk7le6PBo+B+fWtbmkr4ASyaXCZibpfLwas=----ATTACHMENT:----ODMwNDY3MDg3NTUxMjY5OSAyMzE0MDIyODcxNzMxNTU0IDM1NTI5MTg3NzM3MDY0NjQ=