updated backend
This commit is contained in:
parent
1fea0f4fe7
commit
11521c2339
3459 changed files with 72735 additions and 168535 deletions
|
|
@ -1,7 +0,0 @@
|
|||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
*.png binary
|
||||
|
||||
tests/ export-ignore
|
||||
phpunit.xml.dist export-ignore
|
||||
3
pfosten/vendor/myclabs/deep-copy/.gitignore
vendored
3
pfosten/vendor/myclabs/deep-copy/.gitignore
vendored
|
|
@ -1,3 +0,0 @@
|
|||
/composer.phar
|
||||
/composer.lock
|
||||
/vendor/*
|
||||
40
pfosten/vendor/myclabs/deep-copy/.travis.yml
vendored
40
pfosten/vendor/myclabs/deep-copy/.travis.yml
vendored
|
|
@ -1,40 +0,0 @@
|
|||
language: php
|
||||
|
||||
sudo: false
|
||||
|
||||
php:
|
||||
- '5.6'
|
||||
- '7.0'
|
||||
- '7.1'
|
||||
- nightly
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- php: '5.6'
|
||||
env: COMPOSER_FLAGS="--prefer-lowest"
|
||||
allow_failures:
|
||||
- php: nightly
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache/files
|
||||
|
||||
before_install:
|
||||
- |
|
||||
if [ "$TRAVIS_PHP_VERSION" = "nightly" ]; then
|
||||
COMPOSER_FLAGS="$COMPOSER_FLAGS --ignore-platform-reqs"
|
||||
fi;
|
||||
|
||||
install:
|
||||
- composer update --no-interaction --no-progress --no-suggest --prefer-dist $COMPOSER_FLAGS
|
||||
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.0/coveralls.phar
|
||||
|
||||
before_script:
|
||||
- mkdir -p build/logs
|
||||
|
||||
script:
|
||||
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
|
||||
|
||||
after_script:
|
||||
- php coveralls.phar -v
|
||||
11
pfosten/vendor/myclabs/deep-copy/README.md
vendored
11
pfosten/vendor/myclabs/deep-copy/README.md
vendored
|
|
@ -2,12 +2,11 @@
|
|||
|
||||
DeepCopy helps you create deep copies (clones) of your objects. It is designed to handle cycles in the association graph.
|
||||
|
||||
[](https://travis-ci.org/myclabs/DeepCopy)
|
||||
[](https://coveralls.io/r/myclabs/DeepCopy?branch=master)
|
||||
[](https://travis-ci.org/myclabs/DeepCopy)
|
||||
[](https://coveralls.io/r/myclabs/DeepCopy?branch=1.x)
|
||||
[](https://scrutinizer-ci.com/g/myclabs/DeepCopy/)
|
||||
[](https://packagist.org/packages/myclabs/deep-copy)
|
||||
|
||||
|
||||
## Table of Contents
|
||||
|
||||
1. [How](#how)
|
||||
|
|
@ -28,7 +27,7 @@ DeepCopy helps you create deep copies (clones) of your objects. It is designed t
|
|||
1. [`DoctrineEmptyCollectionFilter`](#doctrineemptycollectionfilter-filter)
|
||||
1. [`DoctrineProxyFilter`](#doctrineproxyfilter-filter)
|
||||
1. [`ReplaceFilter`](#replacefilter-type-filter)
|
||||
1. [`ShallowCopyFilter`](#doctrinecollectionfilter-type-filter)
|
||||
1. [`ShallowCopyFilter`](#shallowcopyfilter-type-filter)
|
||||
1. [Edge cases](#edge-cases)
|
||||
1. [Contributing](#contributing)
|
||||
1. [Tests](#tests)
|
||||
|
|
@ -370,3 +369,7 @@ Running the tests is simple:
|
|||
```php
|
||||
vendor/bin/phpunit
|
||||
```
|
||||
|
||||
### Support
|
||||
|
||||
Get professional support via [the Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-myclabs-deep-copy?utm_source=packagist-myclabs-deep-copy&utm_medium=referral&utm_campaign=readme).
|
||||
|
|
|
|||
|
|
@ -21,12 +21,15 @@
|
|||
},
|
||||
|
||||
"require": {
|
||||
"php": "^5.6 || ^7.0"
|
||||
"php": "^7.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/collections": "^1.0",
|
||||
"doctrine/common": "^2.6",
|
||||
"phpunit/phpunit": "^4.1"
|
||||
"phpunit/phpunit": "^7.1"
|
||||
},
|
||||
"replace": {
|
||||
"myclabs/deep-copy": "self.version"
|
||||
},
|
||||
|
||||
"config": {
|
||||
|
|
|
|||
|
|
@ -99,6 +99,14 @@ class DeepCopy
|
|||
];
|
||||
}
|
||||
|
||||
public function prependFilter(Filter $filter, Matcher $matcher)
|
||||
{
|
||||
array_unshift($this->filters, [
|
||||
'matcher' => $matcher,
|
||||
'filter' => $filter,
|
||||
]);
|
||||
}
|
||||
|
||||
public function addTypeFilter(TypeFilter $filter, TypeMatcher $matcher)
|
||||
{
|
||||
$this->typeFilters[] = [
|
||||
|
|
@ -229,6 +237,12 @@ class DeepCopy
|
|||
}
|
||||
|
||||
$property->setAccessible(true);
|
||||
|
||||
// Ignore uninitialized properties (for PHP >7.4)
|
||||
if (method_exists($property, 'isInitialized') && !$property->isInitialized($object)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$propertyValue = $property->getValue($object);
|
||||
|
||||
// Copy the property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue