-
Notifications
You must be signed in to change notification settings - Fork 3
/
v3to5.php
146 lines (146 loc) · 11.5 KB
/
v3to5.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?php
return [
'Phalcon\Acl' => 'Remove',
'Phalcon\Acl\Adapter' => 'Rename | `Phalcon\Acl\Adapter\AbstractAdapter`',
'Phalcon\Acl\Resource' => 'Rename | `Phalcon\Acl\Component`',
'Phalcon\Annotations\Adapter' => 'Rename | `Phalcon\Annotations\Adapter\AbstractAdapter`',
'Phalcon\Annotations\Adapter\Apc' => 'Remove',
'Phalcon\Annotations\Adapter\Files' => 'Rename | `Phalcon\Annotations\Adapter\Stream`',
'Phalcon\Annotations\Adapter\Xcache' => 'Remove',
'Phalcon\Annotations\Factory' => 'Rename | `Phalcon\Annotations\AnnotationsFactory`',
'Phalcon\Application' => 'Rename | `Phalcon\Application\AbstractApplication`',
'Phalcon\Assets\Resource' => 'Rename | `Phalcon\Assets\Asset`',
'Phalcon\Assets\Resource\Css' => 'Rename | `Phalcon\Assets\Asset\Css`',
'Phalcon\Assets\Resource\Js' => 'Rename | `Phalcon\Assets\Asset\Js`',
'Phalcon\Cache\Backend' => 'Rename | `Phalcon\Cache`',
'Phalcon\Cache\Backend\Apc' => 'Remove',
'Phalcon\Cache\Backend\Apcu' => 'Rename | `Phalcon\Cache\Adapter\Apcu`',
'Phalcon\Cache\Backend\Factory' => 'Rename | `Phalcon\Cache\AdapterFactory`',
'Phalcon\Cache\Backend\File' => 'Rename | `Phalcon\Cache\Adapter\Stream`',
'Phalcon\Cache\Backend\Libmemcached' => 'Rename | `Phalcon\Cache\Adapter\Libmemcached`',
'Phalcon\Cache\Backend\Memcache' => 'Remove',
'Phalcon\Cache\Backend\Memory' => 'Rename | `Phalcon\Cache\Adapter\Memory`',
'Phalcon\Cache\Backend\Mongo' => 'Remove',
'Phalcon\Cache\Backend\Redis' => 'Rename | `Phalcon\Cache\Adapter\Redis`',
'Phalcon\Cache\Backend\Xcache' => 'Remove',
'Phalcon\Cache\Exception' => 'Rename | `Phalcon\Cache\Exception\Exception`',
'Phalcon\Cache\Frontend\Base64' => 'Remove',
'Phalcon\Cache\Frontend\Data' => 'Remove',
'Phalcon\Cache\Frontend\Factory' => 'Remove',
'Phalcon\Cache\Frontend\Igbinary' => 'Remove',
'Phalcon\Cache\Frontend\Json' => 'Remove',
'Phalcon\Cache\Frontend\Msgpack' => 'Remove',
'Phalcon\Cache\Frontend\None' => 'Remove',
'Phalcon\Cache\Frontend\Output' => 'Remove',
'Phalcon\Cache\Multiple' => 'Remove',
'Phalcon\Config' => 'Change | `Phalcon\Config\Config` | A new interface has been introduced (Phalcon\Config\ConfigInterface) to offer more flexibility when extending the config object.',
'Phalcon\Config\Factory' => 'Rename | `Phalcon\Config\ConfigFactory`',
'Phalcon\Crypt' => 'Change | `Phalcon\Encryption\Crypt\` | Check https://docs.phalcon.io/5.0/en/encryption-crypt and https://docs.phalcon.io/5.0/en/upgrade#encryption',
'Phalcon\Crypt\Exception' => 'Rename | `Phalcon\Encryption\Crypt\Exception`',
'Phalcon\Crypt\Mismatch' => 'Rename | `Phalcon\Encryption\Crypt\Mismatch`',
'Phalcon\Db' => 'Rename | `Phalcon\Db\AbstractDb`',
'Phalcon\Db\Adapter' => 'Rename | `Phalcon\Db\Adapter\AbstractAdapter`',
'Phalcon\Db\Adapter\Pdo' => 'Rename | `Phalcon\Db\Adapter\PdoFactory`',
'Phalcon\Db\Adapter\Pdo\Factory' => 'Rename | `Phalcon\Db\Adapter\Pdo\AbstractPdo`',
'Phalcon\Db\Result\Pdo' => 'Rename | `Phalcon\Db\Result\ResultPdo`',
'Phalcon\Debug' => 'Rename | `Phalcon\Support\Debug`',
'Phalcon\Debug\Dump' => 'Rename | `Phalcon\Support\Debug\Dump`',
'Phalcon\Debug\Exception' => 'Rename | `Phalcon\Support\Debug\Exception`',
'Phalcon\Di' => 'Change | `Phalcon\Di\Di` | The tag service now returns an instance of Phalcon\Html\TagFactory The (new) helper service returns an instance of Phalcon\Support\HelperFactory',
'Phalcon\Dispatcher' => 'Rename | `Phalcon\Dispatcher\AbstractDispatcher`',
'Phalcon\Escaper' => 'Change | `Phalcon\Html\Escaper` | Renamed and added New methods. Check https://docs.phalcon.io/5.0/en/upgrade#phalconhtmlescaper',
'Phalcon\Escaper\Exception' => 'Rename | `Phalcon\Html\Escaper\Exception` | Changed Phalcon\Html\Escaper\Exception to extend \Exception',
'Phalcon\Exception' => 'Remove',
'Phalcon\Factory' => 'Rename | `Phalcon\Factory\AbstractFactory`',
'Phalcon\Filter' => 'Change | `Phalcon\Filter\Filter` | Renamed and Added __call() to allow using filter names as methods i.e. $filter->upper($input)',
'Phalcon\Flash' => 'Rename | `Phalcon\Flash\AbstractFlash`',
'Phalcon\Forms\Element' => 'Rename | `Phalcon\Forms\Element\AbstractElement`',
'Phalcon\Image' => 'Remove',
'Phalcon\Image\Adapter' => 'Rename | `Phalcon\Image\Adapter\AbstractAdapter`',
'Phalcon\Image\Factory' => 'Rename | `Phalcon\Image\ImageFactory`',
'Phalcon\Kernel' => 'Remove',
'Phalcon\Loader' => 'Change | `Phalcon\Autoload\Loader` | Multiple methods renamed. Check: https://docs.phalcon.io/5.0/en/upgrade#autoload',
'Phalcon\Loader\Exception' => 'Rename | `Phalcon\Autoload\Loader\Exception`',
'Phalcon\Logger' => 'Rename | `Phalcon\Logger\Logger` | The component has been refactored and the dependency to PSR has been removed. The interface method calls are much stricter now. Check: https://docs.phalcon.io/5.0/en/logger',
'Phalcon\Logger\Adapter' => 'Rename | `Phalcon\Logger\Adapter\AbstractAdapter`',
'Phalcon\Logger\Adapter\Blackhole' => 'Remove',
'Phalcon\Logger\Adapter\File' => 'Rename | `Phalcon\Logger\Adapter\Stream`',
'Phalcon\Logger\Adapter\Firephp' => 'Remove',
'Phalcon\Logger\Factory' => 'Rename | `Phalcon\Logger\LoggerFactory`',
'Phalcon\Logger\Formatter' => 'Rename | `Phalcon\Logger\Formatter\AbstractFormatter`',
'Phalcon\Logger\Formatter\Firephp' => 'Remove',
'Phalcon\Logger\Formatter\Syslog' => 'Rename | `Phalcon\Logger\Adapter\Syslog`',
'Phalcon\Logger\Multiple' => 'Remove',
'Phalcon\Mvc\Collection' => 'Rename | `Phalcon\Collection`',
'Phalcon\Mvc\Collection\Behavior' => 'Remove',
'Phalcon\Mvc\Collection\Behavior\SoftDelete' => 'Remove',
'Phalcon\Mvc\Collection\Behavior\Timestampable' => 'Remove',
'Phalcon\Mvc\Collection\Document' => 'Remove',
'Phalcon\Mvc\Collection\Exception' => 'Rename | `Phalcon\Collection\Exception `',
'Phalcon\Mvc\Collection\Manager' => 'Remove',
'Phalcon\Mvc\Model\Message' => 'Rename | `Phalcon\Messages\Message`',
'Phalcon\Mvc\Model\MetaData\Apc' => 'Remove',
'Phalcon\Mvc\Model\MetaData\Files' => 'Rename | `Phalcon\Mvc\Model\MetaData\Stream`',
'Phalcon\Mvc\Model\MetaData\Memcache' => 'Remove',
'Phalcon\Mvc\Model\MetaData\Session' => 'Remove',
'Phalcon\Mvc\Model\MetaData\Xcache' => 'Remove',
'Phalcon\Mvc\Model\Validator' => 'Rename | `Phalcon\Validation\ValidatorFactory`',
'Phalcon\Mvc\Model\Validator\Email' => 'Remove',
'Phalcon\Mvc\Model\Validator\Exclusionin' => 'Remove',
'Phalcon\Mvc\Model\Validator\Inclusionin' => 'Remove',
'Phalcon\Mvc\Model\Validator\Ip' => 'Rename | `Phalcon\Validation\Validator\Ip`',
'Phalcon\Mvc\Model\Validator\Numericality' => 'Remove',
'Phalcon\Mvc\Model\Validator\PresenceOf' => 'Remove',
'Phalcon\Mvc\Model\Validator\Regex' => 'Remove',
'Phalcon\Mvc\Model\Validator\StringLength' => 'Remove',
'Phalcon\Mvc\Model\Validator\Uniqueness' => 'Remove',
'Phalcon\Mvc\Model\Validator\Url' => 'Remove',
'Phalcon\Mvc\User\Component' => 'Rename | `Phalcon\Di\AbstractInjectionAware`',
'Phalcon\Mvc\User\Module' => 'Rename | `Phalcon\Di\AbstractInjectionAware `',
'Phalcon\Mvc\User\Plugin' => 'Rename | `Phalcon\Di\AbstractInjectionAware`',
'Phalcon\Mvc\View\Engine' => 'Rename | `Phalcon\Mvc\View\Engine\AbstractEngine`',
'Phalcon\Paginator\Adapter' => 'Rename | `Phalcon\Paginator\Adapter\AbstractAdapter`',
'Phalcon\Paginator\Factory' => 'Rename | `Phalcon\Paginator\PaginatorFactory`',
'Phalcon\Queue\Beanstalk' => 'Remove',
'Phalcon\Queue\Beanstalk\Exception' => 'Remove',
'Phalcon\Queue\Beanstalk\Job' => 'Remove',
'Phalcon\Registry' => 'Rename | `Phalcon\Support\Registry`',
'Phalcon\Security' => 'Rename | `Phalcon\Encryption\Security`',
'Phalcon\Security\Exception' => 'Rename | `Phalcon\Encryption\Security\Exception`',
'Phalcon\Security\Random' => 'Rename | `Phalcon\Encryption\Security\Random`',
'Phalcon\Session\Adapter' => 'Rename | `Phalcon\Session\Adapter\AbstractAdapter`',
'Phalcon\Session\Adapter\Files' => 'Rename | `Phalcon\Session\Adapter\Stream`',
'Phalcon\Session\Adapter\Memcache' => 'Remove',
'Phalcon\Session\Factory' => 'Rename | `Phalcon\Session\Manager`',
'Phalcon\Text' => 'Rename | `Phalcon\Support\HelperFactory` | Check: https://docs.phalcon.io/5.0/en/upgrade#support',
'Phalcon\Translate' => 'Remove',
'Phalcon\Translate\Adapter' => 'Rename | `Phalcon\Translate\Adapter\AbstractAdapter`',
'Phalcon\Translate\Factory' => 'Rename | `Phalcon\Translate\TranslateFactory`',
'Phalcon\Validation' => 'Change | `Phalcon\Filter\Validation` | Renamed and Added getValueByEntity() and getValueByData() for more options to retrieve data. Added the ability to define allowEmpty to any validator (in the parameters)',
'Phalcon\Validation\CombinedFieldsValidator' => 'Rename | `Phalcon\Validation\AbstractCombinedFieldsValidator`',
'Phalcon\Validation\Exception' => 'Rename | `Phalcon\Filter\Validation\Exception`',
'Phalcon\Validation\Message' => 'Rename | `Phalcon\Messages\Message`',
'Phalcon\Validation\Message\Group' => 'Rename | `Phalcon\Messages\Messages`',
'Phalcon\Validation\Validator' => 'Rename | `Phalcon\Validation\AbstractValidator`',
'Phalcon\Validation\Validator\Alnum' => 'Rename | `Phalcon\Filter\Validation\Validator\Alnum`',
'Phalcon\Validation\Validator\Alpha' => 'Rename | `Phalcon\Filter\Validation\Validator\Alpha`',
'Phalcon\Validation\Validator\Between' => 'Rename | `Phalcon\Filter\Validation\Validator\Between`',
'Phalcon\Validation\Validator\Callback' => 'Rename | `Phalcon\Filter\Validation\Validator\Callback`',
'Phalcon\Validation\Validator\Confirmation' => 'Rename | `Phalcon\Filter\Validation\Validator\Confirmation`',
'Phalcon\Validation\Validator\CreditCard' => 'Rename | `Phalcon\Filter\Validation\Validator\CreditCard`',
'Phalcon\Validation\Validator\Date' => 'Rename | `Phalcon\Filter\Validation\Validator\Date`',
'Phalcon\Validation\Validator\Digit' => 'Rename | `Phalcon\Filter\Validation\Validator\Digit`',
'Phalcon\Validation\Validator\Email' => 'Rename | `Phalcon\Filter\Validation\Validator\Email`',
'Phalcon\Validation\Validator\Exception' => 'Change | `Phalcon\Filter\Validation\Validator\Exception` | Renamed and Changed Phalcon\Filter\Validation\Validator\Exception to extend \Exception',
'Phalcon\Validation\Validator\ExclusionIn' => 'Rename | `Phalcon\Filter\Validation\Validator\ExclusionIn`',
'Phalcon\Validation\Validator\File' => 'Rename | `Phalcon\Filter\Validation\Validator\File`',
'Phalcon\Validation\Validator\Identical' => 'Rename | `Phalcon\Filter\Validation\Validator\Identical`',
'Phalcon\Validation\Validator\InclusionIn' => 'Rename | `Phalcon\Filter\Validation\Validator\InclusionIn`',
'Phalcon\Validation\Validator\Numericality' => 'Rename | `Phalcon\Filter\Validation\Validator\Numericality`',
'Phalcon\Validation\Validator\PresenceOf' => 'Rename | `Phalcon\Filter\Validation\Validator\PresenceOf`',
'Phalcon\Validation\Validator\Regex' => 'Rename | `Phalcon\Filter\Validation\Validator\Regex`',
'Phalcon\Validation\Validator\StringLength' => 'Rename | `Phalcon\Filter\Validation\Validator\StringLength`',
'Phalcon\Validation\Validator\Uniqueness' => 'Rename | `Phalcon\Filter\Validation\Validator\Uniqueness`',
'Phalcon\Validation\Validator\Url' => 'Rename | `Phalcon\Filter\Validation\Validator\Url`',
'Phalcon\Version' => 'Rename | `Phalcon\Support\Version`'
];