Skip to content

Commit c10d185

Browse files
authored
Merge pull request #715 from phalcon/3.0.x
Bump version
2 parents 660df5e + 55ebe3a commit c10d185

File tree

256 files changed

+14503
-2687
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+14503
-2687
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
# Phalcon Devtools
2+
13
[![Latest Version](https://img.shields.io/packagist/v/phalcon/devtools.svg?style=flat-square)](https://github.com/phalcon/incubator/devtools)
24
[![Software License](https://img.shields.io/badge/license-BSD--3-brightgreen.svg?style=flat-square)][1]
35
[![Total Downloads](https://img.shields.io/packagist/dt/phalcon/devtools.svg?style=flat-square)](https://packagist.org/packages/phalcon/devtools)
46
[![Daily Downloads](https://img.shields.io/packagist/dd/phalcon/devtools.svg?style=flat-square)](https://packagist.org/packages/phalcon/devtools)
57

6-
# Phalcon Devtools
7-
8-
![Webtools](http://static.phalconphp.com/img/webtools.png)
8+
![Phalcon WebTools](http://i.imgur.com/v3MzIDn.png?1)
99

1010
## What's Phalcon?
1111

@@ -18,8 +18,8 @@ with Phalcon framework.
1818

1919
## Requirements
2020

21-
* PHP >= 5.3.9
22-
* Phalcon >= 2.0.0
21+
* PHP >= 5.5
22+
* Phalcon >= 3.0.0
2323

2424
## Installing via Composer
2525

@@ -34,7 +34,7 @@ Create the composer.json file as follows:
3434
```json
3535
{
3636
"require": {
37-
"phalcon/devtools": "^2.0"
37+
"phalcon/devtools": "dev-master"
3838
}
3939
}
4040
```
@@ -105,7 +105,7 @@ This command should display something similar to:
105105
```sh
106106
$ phalcon list ?
107107

108-
Phalcon DevTools (2.0.11)
108+
Phalcon DevTools (3.0.0)
109109

110110
Help:
111111
Lists the commands available in Phalcon devtools

composer.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@
88
"authors": [
99
{
1010
"name": "Phalcon Team",
11-
"email": "[email protected]"
11+
"email": "[email protected]",
12+
"homepage": "https://phalconphp.com/en/team"
13+
},
14+
{
15+
"name": "Contributors",
16+
"homepage": "https://github.com/phalcon/phalcon-devtools/graphs/contributors"
1217
}
1318
],
19+
"support": {
20+
"issues": "https://github.com/phalcon/phalcon-devtools/issues",
21+
"source": "https://github.com/phalcon/phalcon-devtools",
22+
"forum": "https://forum.phalconphp.com/"
23+
},
1424
"require": {
15-
"php": ">=5.3.9",
16-
"ext-phalcon": "^2.0"
25+
"php": ">=5.5",
26+
"ext-phalcon": "^3.0"
1727
},
1828
"require-dev": {
1929
"kherge/box": "^2.7"
@@ -25,7 +35,7 @@
2535
},
2636
"extra": {
2737
"branch-alias": {
28-
"dev-master": "2.0.x-dev"
38+
"dev-master": "3.0.x-dev"
2939
}
3040
},
3141
"bin": ["phalcon.php"]

ide/stubs/Phalcon/Acl.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,22 @@
88
* of permissions attached to an object. An ACL specifies which users or system processes
99
* are granted access to objects, as well as what operations are allowed on given objects.
1010
* <code>
11-
* $acl = new \Phalcon\Acl\Adapter\Memory();
11+
* use Phalcon\Acl;
12+
* use Phalcon\Acl\Role;
13+
* use Phalcon\Acl\Resource;
14+
* use Phalcon\Acl\Adapter\Memory;
15+
* $acl = new Memory();
1216
* //Default action is deny access
13-
* $acl->setDefaultAction(\Phalcon\Acl::DENY);
17+
* $acl->setDefaultAction(Acl::DENY);
1418
* //Create some roles
15-
* $roleAdmins = new \Phalcon\Acl\Role('Administrators', 'Super-User role');
16-
* $roleGuests = new \Phalcon\Acl\Role('Guests');
19+
* $roleAdmins = new Role('Administrators', 'Super-User role');
20+
* $roleGuests = new Role('Guests');
1721
* //Add "Guests" role to acl
1822
* $acl->addRole($roleGuests);
1923
* //Add "Designers" role to acl
2024
* $acl->addRole('Designers');
2125
* //Define the "Customers" resource
22-
* $customersResource = new \Phalcon\Acl\Resource('Customers', 'Customers management');
26+
* $customersResource = new Resource('Customers', 'Customers management');
2327
* //Add "customers" resource with a couple of operations
2428
* $acl->addResource($customersResource, 'search');
2529
* $acl->addResource($customersResource, array('create', 'update'));

ide/stubs/Phalcon/Application.php

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<?php
2+
3+
namespace Phalcon;
4+
5+
/**
6+
* Phalcon\Application
7+
* Base class for Phalcon\Cli\Console and Phalcon\Mvc\Application.
8+
*/
9+
abstract class Application extends \Phalcon\Di\Injectable implements \Phalcon\Events\EventsAwareInterface
10+
{
11+
12+
protected $_eventsManager;
13+
14+
15+
protected $_dependencyInjector;
16+
17+
/**
18+
* @var string
19+
*/
20+
protected $_defaultModule;
21+
22+
/**
23+
* @var array
24+
*/
25+
protected $_modules = array();
26+
27+
28+
/**
29+
* Phalcon\Application
30+
*
31+
* @param mixed $dependencyInjector
32+
*/
33+
public function __construct(\Phalcon\DiInterface $dependencyInjector = null) {}
34+
35+
/**
36+
* Sets the events manager
37+
*
38+
* @param mixed $eventsManager
39+
* @return Application
40+
*/
41+
public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) {}
42+
43+
/**
44+
* Returns the internal event manager
45+
*
46+
* @return \Phalcon\Events\ManagerInterface
47+
*/
48+
public function getEventsManager() {}
49+
50+
/**
51+
* Register an array of modules present in the application
52+
* <code>
53+
* $this->registerModules(
54+
* [
55+
* 'frontend' => [
56+
* 'className' => 'Multiple\Frontend\Module',
57+
* 'path' => '../apps/frontend/Module.php'
58+
* ],
59+
* 'backend' => [
60+
* 'className' => 'Multiple\Backend\Module',
61+
* 'path' => '../apps/backend/Module.php'
62+
* ]
63+
* ]
64+
* );
65+
* </code>
66+
*
67+
* @param array $modules
68+
* @param bool $merge
69+
* @return Application
70+
*/
71+
public function registerModules(array $modules, $merge = false) {}
72+
73+
/**
74+
* Return the modules registered in the application
75+
*
76+
* @return array
77+
*/
78+
public function getModules() {}
79+
80+
/**
81+
* Gets the module definition registered in the application via module name
82+
*
83+
* @param string $name
84+
* @return array|object
85+
*/
86+
public function getModule($name) {}
87+
88+
/**
89+
* Sets the module name to be used if the router doesn't return a valid module
90+
*
91+
* @param string $defaultModule
92+
* @return Application
93+
*/
94+
public function setDefaultModule($defaultModule) {}
95+
96+
/**
97+
* Returns the default module name
98+
*
99+
* @return string
100+
*/
101+
public function getDefaultModule() {}
102+
103+
/**
104+
* Handles a request
105+
*/
106+
abstract public function handle();
107+
108+
}

ide/stubs/Phalcon/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Config implements \ArrayAccess, \Countable
3232
*
3333
* @param array $arrayConfig
3434
*/
35-
public function __construct($arrayConfig = null) {}
35+
public function __construct(array $arrayConfig = null) {}
3636

3737
/**
3838
* Allows to check whether an attribute is defined using the array-syntax
@@ -132,7 +132,7 @@ public function count() {}
132132
* @param array $data
133133
* @return Config
134134
*/
135-
public static function __set_state($data) {}
135+
public static function __set_state(array $data) {}
136136

137137
/**
138138
* Helper method for merge configs (forwarding nested config instance)

ide/stubs/Phalcon/Crypt.php

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ class Crypt implements \Phalcon\CryptInterface
4343
protected $_padding = 0;
4444

4545

46-
protected $_mode = "cbc";
47-
48-
49-
protected $_cipher = "rijndael-256";
46+
protected $_cipher = "aes-256-cfb";
5047

5148

5249
/**
@@ -72,21 +69,6 @@ public function setCipher($cipher) {}
7269
*/
7370
public function getCipher() {}
7471

75-
/**
76-
* Sets the encrypt/decrypt mode
77-
*
78-
* @param string $mode
79-
* @return Crypt
80-
*/
81-
public function setMode($mode) {}
82-
83-
/**
84-
* Returns the current encryption mode
85-
*
86-
* @return string
87-
*/
88-
public function getMode() {}
89-
9072
/**
9173
* Sets the encryption key
9274
*
@@ -105,24 +87,22 @@ public function getKey() {}
10587
/**
10688
* Pads texts before encryption
10789
*
108-
* @link http://www.di-mgt.com.au/cryptopad.html
90+
* @see http://www.di-mgt.com.au/cryptopad.html
10991
* @param string $text
11092
* @param string $mode
11193
* @param int $blockSize
11294
* @param int $paddingType
113-
* @return string
11495
*/
11596
protected function _cryptPadText($text, $mode, $blockSize, $paddingType) {}
11697

11798
/**
118-
* Removes $paddingType padding from text
119-
* If the method detects that the text was not padded, it will return it unmodified
99+
* Removes padding @a padding_type from @a text
100+
* If the function detects that the text was not padded, it will return it unmodified
120101
*
121102
* @param string $text Message to be unpadded
122103
* @param string $mode Encryption mode; unpadding is applied only in CBC or ECB mode
123104
* @param int $blockSize Cipher block size
124105
* @param int $paddingType Padding scheme
125-
* @return string
126106
*/
127107
protected function _cryptUnpadText($text, $mode, $blockSize, $paddingType) {}
128108

@@ -171,17 +151,10 @@ public function encryptBase64($text, $key = null, $safe = false) {}
171151
public function decryptBase64($text, $key = null, $safe = false) {}
172152

173153
/**
174-
* Returns a list of available cyphers
154+
* Returns a list of available ciphers
175155
*
176156
* @return array
177157
*/
178158
public function getAvailableCiphers() {}
179159

180-
/**
181-
* Returns a list of available modes
182-
*
183-
* @return array
184-
*/
185-
public function getAvailableModes() {}
186-
187160
}

ide/stubs/Phalcon/CryptInterface.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,6 @@ public function setCipher($cipher);
2424
*/
2525
public function getCipher();
2626

27-
/**
28-
* Sets the encrypt/decrypt mode
29-
*
30-
* @param string $mode
31-
* @return CryptInterface
32-
*/
33-
public function setMode($mode);
34-
35-
/**
36-
* Returns the current encryption mode
37-
*
38-
* @return string
39-
*/
40-
public function getMode();
41-
4227
/**
4328
* Sets the encryption key
4429
*
@@ -97,11 +82,4 @@ public function decryptBase64($text, $key = null);
9782
*/
9883
public function getAvailableCiphers();
9984

100-
/**
101-
* Returns a list of available modes
102-
*
103-
* @return array
104-
*/
105-
public function getAvailableModes();
106-
10785
}

ide/stubs/Phalcon/Db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ abstract class Db
9191
*
9292
* @param array $options
9393
*/
94-
public static function setup($options) {}
94+
public static function setup(array $options) {}
9595

9696
}

ide/stubs/Phalcon/Debug.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class Debug
1010
{
1111

12-
protected $_uri = "//static.phalconphp.com/www/debug/2.0.0/";
12+
protected $_uri = "//static.phalconphp.com/www/debug/3.0.x/";
1313

1414

1515
protected $_theme = "default";
@@ -125,7 +125,7 @@ protected function _escapeString($value) {}
125125
* @param mixed $n
126126
* @return string|null
127127
*/
128-
protected function _getArrayDump($argument, $n = 0) {}
128+
protected function _getArrayDump(array $argument, $n = 0) {}
129129

130130
/**
131131
* Produces an string representation of a variable
@@ -169,7 +169,7 @@ public function getJsSources() {}
169169
* @param int $n
170170
* @param array $trace
171171
*/
172-
protected final function showTraceItem($n, $trace) {}
172+
protected final function showTraceItem($n, array $trace) {}
173173

174174
/**
175175
* Throws an exception when a notice or warning is raised

0 commit comments

Comments
 (0)