This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f7f0fe0
Showing
222 changed files
with
20,248 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Profiling | ||
PROFILING = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/tests export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.idea/ | ||
.env | ||
.coveralls.yml | ||
composer.lock | ||
vendor/ | ||
tests/runtime/* | ||
build/logs/* | ||
build/ | ||
*.db | ||
clover.xml | ||
coveralls.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
language: php | ||
|
||
services: | ||
- mongodb | ||
|
||
php: | ||
- 7.0 | ||
- 7.1 | ||
|
||
before_install: | ||
- composer self-update | ||
- phpenv config-add tests/php-travis.ini | ||
- mysql -e 'CREATE DATABASE spiral;' | ||
- psql -c 'create database spiral;' -U postgres | ||
|
||
install: | ||
- composer install --no-interaction --prefer-source | ||
|
||
script: | ||
- phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
CHANGELOG for 0.9.0 RC | ||
====================== | ||
|
||
0.9.6 (03.02.2017) | ||
----- | ||
**General** | ||
* Lazy wire declaration for FactoryInterface | ||
|
||
0.9.5 (01.02.2017) | ||
----- | ||
**DBAL** | ||
* Ability to use nested queries in JOIN statements | ||
* on argument in join() methods is deprecated, use on() function directly | ||
|
||
**ORM** | ||
* Optimizations in load method with "using" option | ||
|
||
0.9.4 (30.01.2017) | ||
----- | ||
**General** | ||
* Container is not clonable | ||
|
||
**Stempler** | ||
* StemplerLoader synced with Twig abstraction, StemplerSource introduced | ||
|
||
0.9.3 (28.01.2017) | ||
----- | ||
**Stempler** | ||
* SourceContext (twig like) have been added | ||
|
||
0.9.2 (27.01.2017) | ||
----- | ||
**ORM** | ||
* Added late bindings (locate outer record based on Interface or role name) | ||
* Added detach() method into HasMany relation | ||
|
||
0.9.0 (23.01.2017) | ||
----- | ||
**General** | ||
* Dropped support of PHP5+ | ||
* Code coverage improvements | ||
* Cache component removed (replaced with PSR-16) | ||
* Views component moved to Framework bundle | ||
* Validation component moved to Framework bundle | ||
* Translation component moved to Framework bundle | ||
* Encryption component moved to Framework bundle | ||
* Migrations component moved in | ||
* Automatic migration generation is now part of Migration component | ||
* Security component moved in | ||
* Monolog dependency removed | ||
* PHPUnit updated to 5.0 branch | ||
* Symfony dependencies updated to 3.0 branch | ||
* Schema definitions moved to array constants instead of default property values | ||
* Simplified PaginatorInterface | ||
* Reactor component moved in | ||
* Debugger (log manager) component removed | ||
* Improved implementation of Tokenizer component | ||
|
||
**Core** | ||
* ScoperInterface moved into Framework bundle | ||
* Container now validates scalar agument types when supplied by user | ||
|
||
**DBAL** | ||
* Improved polyfills for SQLServer | ||
* Improved SQL injection prevention | ||
* Improved timezone management | ||
* Refactoring of DBAL schemas | ||
* Bugfixes | ||
* Unions with ordering in SQLServer | ||
* Invalid parameter handling for update queries with nested selection | ||
* Pagination classes are immutable now | ||
|
||
**Models** | ||
* Removed features | ||
* Embedded validations | ||
* Magic getter and setter methods via __call() | ||
* setValue and packValue methods added | ||
* "fields" property is now private | ||
* SolidableTrait is now part of models | ||
|
||
**ORM** | ||
* Refactoring of SchemaBuilder | ||
* RecordSelector does not extend SelectQuery anymore | ||
* Transactional (UnitOfWork) support | ||
* Improvements in memory mapping | ||
* Improvements in tree operations (save) | ||
* Removed features | ||
* ActiveRecord thought direct table communication | ||
* MutableNumber accessor | ||
* Validations | ||
* Bugfixes | ||
* ManyToMany relations to non-saved records | ||
* BelongsToRelation to non-saved records | ||
* Definition of morphed relations must be explicit now | ||
* All ORM entities MUST have proper primary key now | ||
* Ability to define custom column types in combination with accessors | ||
* Relation loaders and schemas are immutable now | ||
* Memory scope are optional now | ||
* Record does not have "source" method by default now (see SourceTrait) | ||
|
||
**ODM** | ||
* Moved to latest PHP7 mongo drivers | ||
* Removed features | ||
* Validations | ||
* Removed parent document reference in compositions | ||
* Scalar array split into multiple versions | ||
* CompositableInterface improved | ||
* Document does not have "source" method by default now (see SourceTrait) | ||
|
||
**Storage** | ||
* Improved implementation of RackspaceServer | ||
* Added GridFS server support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Anton Titov | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "spiral/components", | ||
"type": "framework", | ||
"description": "Spiral, Core Components", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Anton Titov / Wolfy-J", | ||
"email": "wolfy.jd@gmail.com" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.0", | ||
"ext-mbstring": "*", | ||
"ext-openssl": "*", | ||
"psr/log": "*", | ||
"container-interop/container-interop": "^1.1", | ||
"psr/http-message": "^1.0", | ||
"psr/simple-cache": "^1.0", | ||
"doctrine/inflector": "^v1.1", | ||
"symfony/finder": "^3.0", | ||
"symfony/event-dispatcher": "^3.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~5.0", | ||
"mockery/mockery": "^0.9.4", | ||
"vlucas/phpdotenv": "^2.1" | ||
}, | ||
"autoload": { | ||
"files": [ | ||
"source/functions.php" | ||
], | ||
"psr-4": { | ||
"Spiral\\": "source/Spiral/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Spiral\\Tests\\": "tests/" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit bootstrap="tests/bootstrap.php" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
verbose="false" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
stopOnError="false" | ||
syntaxCheck="true" | ||
> | ||
|
||
<testsuites> | ||
<testsuite name="Spiral Framework Core Tests"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>source/Spiral</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
Oops, something went wrong.