Skip to content

Commit

Permalink
Merge pull request #65 from phalcon/v5-alpha.3
Browse files Browse the repository at this point in the history
V5 alpha.3
  • Loading branch information
Jeckerson authored Sep 11, 2021
2 parents 49daba9 + a599dee commit e9f8c69
Show file tree
Hide file tree
Showing 274 changed files with 958 additions and 110 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
# https://help.github.com/articles/ignoring-files/#create-a-global-gitignore

/vendor
composer.phar
133 changes: 67 additions & 66 deletions composer.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Acl/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use Phalcon\Acl\Enum;
use Phalcon\Events\ManagerInterface;
use Phalcon\Events\EventsAwareInterface;

/**
* Adapter for Phalcon\Acl adapters
Expand Down
3 changes: 3 additions & 0 deletions src/Acl/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
*/
namespace Phalcon\Acl\Adapter;

use Phalcon\Acl\ComponentInterface;
use Phalcon\Acl\RoleInterface;

/**
* Interface for Phalcon\Acl adapters
*/
Expand Down
9 changes: 9 additions & 0 deletions src/Acl/Adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
namespace Phalcon\Acl\Adapter;

use Phalcon\Acl\Enum;
use Phalcon\Acl\Role;
use Phalcon\Acl\RoleInterface;
use Phalcon\Acl\Component;
use Phalcon\Acl\Exception;
use Phalcon\Events\Manager as EventsManager;
use Phalcon\Acl\RoleAware;
use Phalcon\Acl\ComponentAware;
use Phalcon\Acl\ComponentInterface;
use ReflectionFunction;

/**
* Manages ACL lists in memory
Expand Down
5 changes: 3 additions & 2 deletions src/Annotations/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Collection;
use Phalcon\Annotations\Reader;
use Phalcon\Annotations\ReaderInterface;
use Phalcon\Annotations\Exception;
use Phalcon\Annotations\Collection;
use Phalcon\Annotations\Reflection;
use Phalcon\Annotations\ReaderInterface;

/**
* This is the base class for Phalcon\Annotations adapters
Expand Down
2 changes: 1 addition & 1 deletion src/Annotations/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reflection;
use Phalcon\Annotations\Collection;
use Phalcon\Annotations\ReaderInterface;
use Phalcon\Annotations\Reflection;

/**
* This interface must be implemented by adapters in Phalcon\Annotations
Expand Down
2 changes: 2 additions & 0 deletions src/Annotations/Adapter/Apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reflection;

/**
* Stores the parsed annotations in APCu. This adapter is suitable for production
*
Expand Down
2 changes: 2 additions & 0 deletions src/Annotations/Adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reflection;

/**
* Stores the parsed annotations in memory. This adapter is the suitable
* development/testing
Expand Down
4 changes: 4 additions & 0 deletions src/Annotations/Adapter/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
*/
namespace Phalcon\Annotations\Adapter;

use Phalcon\Annotations\Reflection;
use Phalcon\Annotations\Exception;
use RuntimeException;

/**
* Stores the parsed annotations in files. This adapter is suitable for production
*
Expand Down
1 change: 1 addition & 0 deletions src/Annotations/AnnotationsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use Phalcon\Annotations\Adapter\AdapterInterface;
use Phalcon\Factory\AbstractFactory;
use Phalcon\Helper\Arr;

/**
* Factory to create annotations components
Expand Down
3 changes: 3 additions & 0 deletions src/Annotations/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
*/
namespace Phalcon\Annotations;

use Countable;
use Iterator;

/**
* Represents a collection of annotations. This class allows to traverse a group
* of annotations easily
Expand Down
2 changes: 2 additions & 0 deletions src/Annotations/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Annotations;

use ReflectionClass;

/**
* Parses docblocks returning an array with the found annotations
*/
Expand Down
1 change: 1 addition & 0 deletions src/Application/AbstractApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use Phalcon\Di\DiInterface;
use Phalcon\Di\Injectable;
use Phalcon\Events\EventsAwareInterface;
use Phalcon\Events\ManagerInterface;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Assets/Asset/Css.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Assets\Asset;

use Phalcon\Assets\Asset as AssetBase;

/**
* Represents CSS assets
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Assets/Asset/Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Assets\Asset;

use Phalcon\Assets\Asset as AssetBase;

/**
* Represents JavaScript assets
*/
Expand Down
7 changes: 7 additions & 0 deletions src/Assets/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
*/
namespace Phalcon\Assets;

use Countable;
use Iterator;
use Phalcon\Assets\Asset\Css as AssetCss;
use Phalcon\Assets\Asset\Js as AssetJs;
use Phalcon\Assets\Inline\Js as InlineJs;
use Phalcon\Assets\Inline\Css as InlineCss;

/**
* Represents a collection of assets
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Assets/Filters/Cssmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Assets\Filters;

use Phalcon\Assets\FilterInterface;

/**
* Minify the CSS - removes comments removes newlines and line feeds keeping
* removes last semicolon from last property
Expand Down
2 changes: 2 additions & 0 deletions src/Assets/Filters/Jsmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Assets\Filters;

use Phalcon\Assets\FilterInterface;

/**
* Deletes the characters which are insignificant to JavaScript. Comments will
* be removed. Tabs will be replaced with spaces. Carriage returns will be
Expand Down
2 changes: 2 additions & 0 deletions src/Assets/Filters/None.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Assets\Filters;

use Phalcon\Assets\FilterInterface;

/**
* Returns the content without make any modification to the original source
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Assets/Inline/Css.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Assets\Inline;

use Phalcon\Assets\Inline as InlineBase;

/**
* Represents an inlined CSS
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Assets/Inline/Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Assets\Inline;

use Phalcon\Assets\Inline as InlineBase;

/**
* Represents an inline JavaScript
*/
Expand Down
6 changes: 6 additions & 0 deletions src/Assets/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
*/
namespace Phalcon\Assets;

use Phalcon\Tag;
use Phalcon\Assets\Asset\Js as AssetJs;
use Phalcon\Assets\Asset\Css as AssetCss;
use Phalcon\Assets\Inline\Css as InlineCss;
use Phalcon\Assets\Inline\Js as InlineJs;
use Phalcon\Di\DiInterface;
use Phalcon\Di\AbstractInjectionAware;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
namespace Phalcon;

use Phalcon\Cache\Adapter\AdapterInterface;
use Phalcon\Cache\Exception\Exception;
use Phalcon\Cache\Exception\InvalidArgumentException;
use Psr\SimpleCache\CacheInterface;
use Traversable;

/**
* This component offers caching capabilities for your application.
Expand Down
1 change: 1 addition & 0 deletions src/Cache/Adapter/Apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Apcu as StorageApcu;

/**
* Apcu adapter
Expand Down
1 change: 1 addition & 0 deletions src/Cache/Adapter/Libmemcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Libmemcached as StorageLibmemcached;

/**
* Libmemcached adapter
Expand Down
1 change: 1 addition & 0 deletions src/Cache/Adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Memory as StorageMemory;

/**
* Memory adapter
Expand Down
1 change: 1 addition & 0 deletions src/Cache/Adapter/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Redis as StorageRedis;

/**
* Redis adapter
Expand Down
1 change: 1 addition & 0 deletions src/Cache/Adapter/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Cache\Adapter;

use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface;
use Phalcon\Storage\Adapter\Stream as StorageStream;

/**
* Stream adapter
Expand Down
6 changes: 6 additions & 0 deletions src/Cache/CacheFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
*/
namespace Phalcon\Cache;

use Phalcon\Cache\Adapter\AdapterInterface;
use Phalcon\Cache;
use Psr\SimpleCache\CacheInterface;
use Phalcon\Cache\Exception\Exception;
use Phalcon\Config;
use Phalcon\Config\ConfigInterface;
use Phalcon\Helper\Arr;

/**
* Creates a new Cache class
Expand Down
4 changes: 4 additions & 0 deletions src/Cli/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
namespace Phalcon\Cli;

use Phalcon\Application\AbstractApplication;
use Phalcon\Cli\Router\Route;
use Phalcon\Cli\Console\Exception;
use Phalcon\Di\DiInterface;
use Phalcon\Events\ManagerInterface;

/**
* This component allows to create CLI applications using Phalcon
Expand Down
5 changes: 5 additions & 0 deletions src/Cli/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
*/
namespace Phalcon\Cli;

use Phalcon\Cli\Dispatcher\Exception;
use Phalcon\Dispatcher\AbstractDispatcher as CliDispatcher;
use Phalcon\Events\ManagerInterface;
use Phalcon\Filter\FilterInterface;

/**
* Dispatching is the process of taking the command-line arguments, extracting
* the module name, task name, action name, and optional parameters contained in
Expand Down
5 changes: 4 additions & 1 deletion src/Cli/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
*/
namespace Phalcon\Cli;

use Phalcon\Cli\Router\RouteInterface;
use Phalcon\Di\DiInterface;
use Phalcon\Di\AbstractInjectionAware;
use Phalcon\Cli\Router\Route;
use Phalcon\Cli\Router\Exception;
use Phalcon\Cli\Router\RouteInterface;

/**
* Phalcon\Cli\Router is the standard framework router. Routing is the process
Expand Down
1 change: 1 addition & 0 deletions src/Cli/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Cli;

use Phalcon\Di\Injectable;
use Phalcon\Events\EventsAwareInterface;
use Phalcon\Events\ManagerInterface;

/**
Expand Down
8 changes: 8 additions & 0 deletions src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
*/
namespace Phalcon;

use ArrayAccess;
use ArrayIterator;
use Countable;
use IteratorAggregate;
use JsonSerializable;
use Phalcon\Collection\CollectionInterface;
use Phalcon\Helper\Json;
use Serializable;
use Traversable;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Collection/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace Phalcon\Collection;

use Throwable;

/**
* Exceptions for the Collection object
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
*/
namespace Phalcon;

use Phalcon\Collection;
use Phalcon\Config\ConfigInterface;
use Phalcon\Config\Exception;

/**
* `Phalcon\Config` is designed to simplify the access to, and the use of,
Expand Down
4 changes: 4 additions & 0 deletions src/Config/Adapter/Grouped.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
namespace Phalcon\Config\Adapter;

use Phalcon\Config;
use Phalcon\Config\ConfigFactory;
use Phalcon\Config\ConfigInterface;
use Phalcon\Config\Exception;
use Phalcon\Factory\Exception as FactoryException;

/**
* Reads multiple files (or arrays) and merges them all together.
Expand Down
1 change: 1 addition & 0 deletions src/Config/Adapter/Ini.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Config\Adapter;

use Phalcon\Config;
use Phalcon\Config\Exception;

/**
* Reads ini files and converts them to Phalcon\Config objects.
Expand Down
1 change: 1 addition & 0 deletions src/Config/Adapter/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Config\Adapter;

use Phalcon\Config;
use Phalcon\Helper\Json as JsonHelper;

/**
* Reads JSON files and converts them to Phalcon\Config objects.
Expand Down
1 change: 1 addition & 0 deletions src/Config/Adapter/Yaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Phalcon\Config\Adapter;

use Phalcon\Config;
use Phalcon\Config\Exception;

/**
* Reads YAML files and converts them to Phalcon\Config objects.
Expand Down
Loading

0 comments on commit e9f8c69

Please sign in to comment.