Skip to content

Commit 1c112a6

Browse files
authored
Merge pull request #933 from phalcon/3.0.x
3.0.3
2 parents 1845b70 + 3fa0e63 commit 1c112a6

File tree

369 files changed

+11281
-8744
lines changed

Some content is hidden

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

369 files changed

+11281
-8744
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,29 @@ Hello!
55

66
This pull request affects the following components: **(please check boxes)**
77

8-
* [ ] Core
9-
* [ ] WebTools
10-
* [ ] Migrations
11-
* [ ] Models
12-
* [ ] Scaffold
13-
* [ ] Documentation
14-
* [ ] IDE
15-
* [ ] MySQL
16-
* [ ] PostgreSQL
17-
* [ ] Oracle
18-
* [ ] SQLite
19-
* [ ] Testing
20-
* [ ] Code Quality
21-
* [ ] Templating
8+
- [ ] Core
9+
- [ ] WebTools
10+
- [ ] Migrations
11+
- [ ] Models
12+
- [ ] Scaffold
13+
- [ ] Documentation
14+
- [ ] IDE
15+
- [ ] MySQL
16+
- [ ] PostgreSQL
17+
- [ ] Oracle
18+
- [ ] SQLite
19+
- [ ] Testing
20+
- [ ] Code Quality
21+
- [ ] Templating
2222

2323
**In raising this pull request, I confirm the following (please check boxes):**
2424

25-
- [ ] I have read and understood the [Contributing Guidelines](https://github.com/phalcon/phalcon-devtools/blob/master/CONTRIBUTING.md)?
25+
- [ ] I have read and understood the [Contributing Guidelines][:contrib:]?
2626
- [ ] I have checked that another pull request for this purpose does not exist.
2727
- [ ] I wrote some tests for this PR.
2828

2929
Small description of change:
3030

3131
Thanks
32+
33+
[:contrib:]: https://github.com/phalcon/phalcon-devtools/blob/master/CONTRIBUTING.md

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@
3333
"Phalcon\\" : "scripts/Phalcon/"
3434
}
3535
},
36-
"bin": ["phalcon.php", "phalcon"]
36+
"bin": ["phalcon.php"]
3737
}

ide/stubs/Phalcon/Acl.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,44 @@
44

55
/**
66
* Phalcon\Acl
7+
*
78
* This component allows to manage ACL lists. An access control list (ACL) is a list
89
* of permissions attached to an object. An ACL specifies which users or system processes
910
* are granted access to objects, as well as what operations are allowed on given objects.
11+
*
1012
* <code>
1113
* use Phalcon\Acl;
1214
* use Phalcon\Acl\Role;
1315
* use Phalcon\Acl\Resource;
1416
* use Phalcon\Acl\Adapter\Memory;
17+
*
1518
* $acl = new Memory();
19+
*
1620
* // Default action is deny access
1721
* $acl->setDefaultAction(Acl::DENY);
22+
*
1823
* // Create some roles
1924
* $roleAdmins = new Role("Administrators", "Super-User role");
2025
* $roleGuests = new Role("Guests");
26+
*
2127
* // Add "Guests" role to acl
2228
* $acl->addRole($roleGuests);
29+
*
2330
* // Add "Designers" role to acl
2431
* $acl->addRole("Designers");
32+
*
2533
* // Define the "Customers" resource
2634
* $customersResource = new Resource("Customers", "Customers management");
35+
*
2736
* // Add "customers" resource with a couple of operations
2837
* $acl->addResource($customersResource, "search");
2938
* $acl->addResource($customersResource, ["create", "update"]);
39+
*
3040
* // Set access level for roles into resources
3141
* $acl->allow("Guests", "Customers", "search");
3242
* $acl->allow("Guests", "Customers", "create");
3343
* $acl->deny("Guests", "Customers", "update");
44+
*
3445
* // Check whether role has access to the operations
3546
* $acl->isAllowed("Guests", "Customers", "edit"); // Returns 0
3647
* $acl->isAllowed("Guests", "Customers", "search"); // Returns 1

ide/stubs/Phalcon/Application.php

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
/**
66
* Phalcon\Application
7+
*
78
* Base class for Phalcon\Cli\Console and Phalcon\Mvc\Application.
89
*/
910
abstract class Application extends \Phalcon\Di\Injectable implements \Phalcon\Events\EventsAwareInterface
@@ -28,75 +29,76 @@ abstract class Application extends \Phalcon\Di\Injectable implements \Phalcon\Ev
2829
/**
2930
* Phalcon\Application
3031
*
31-
* @param mixed $dependencyInjector
32+
* @param \Phalcon\DiInterface $dependencyInjector
3233
*/
3334
public function __construct(\Phalcon\DiInterface $dependencyInjector = null) {}
3435

3536
/**
3637
* Sets the events manager
3738
*
38-
* @param mixed $eventsManager
39-
* @return Application
39+
* @param \Phalcon\Events\ManagerInterface $eventsManager
40+
* @return Application
4041
*/
4142
public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) {}
4243

4344
/**
4445
* Returns the internal event manager
4546
*
46-
* @return \Phalcon\Events\ManagerInterface
47+
* @return \Phalcon\Events\ManagerInterface
4748
*/
4849
public function getEventsManager() {}
4950

5051
/**
5152
* Register an array of modules present in the application
53+
*
5254
* <code>
5355
* $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-
* ]
56+
* [
57+
* "frontend" => [
58+
* "className" => "Multiple\\Frontend\\Module",
59+
* "path" => "../apps/frontend/Module.php",
60+
* ],
61+
* "backend" => [
62+
* "className" => "Multiple\\Backend\\Module",
63+
* "path" => "../apps/backend/Module.php",
64+
* ],
65+
* ]
6466
* );
6567
* </code>
6668
*
67-
* @param array $modules
68-
* @param bool $merge
69-
* @return Application
69+
* @param array $modules
70+
* @param bool $merge
71+
* @return Application
7072
*/
7173
public function registerModules(array $modules, $merge = false) {}
7274

7375
/**
7476
* Return the modules registered in the application
7577
*
76-
* @return array
78+
* @return array
7779
*/
7880
public function getModules() {}
7981

8082
/**
8183
* Gets the module definition registered in the application via module name
8284
*
83-
* @param string $name
84-
* @return array|object
85+
* @param string $name
86+
* @return array|object
8587
*/
8688
public function getModule($name) {}
8789

8890
/**
8991
* Sets the module name to be used if the router doesn't return a valid module
9092
*
91-
* @param string $defaultModule
92-
* @return Application
93+
* @param string $defaultModule
94+
* @return Application
9395
*/
9496
public function setDefaultModule($defaultModule) {}
9597

9698
/**
9799
* Returns the default module name
98100
*
99-
* @return string
101+
* @return string
100102
*/
101103
public function getDefaultModule() {}
102104

0 commit comments

Comments
 (0)