Skip to content
This repository was archived by the owner on Mar 30, 2018. It is now read-only.
Open

4.1 #40

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
3f4d117
first autoload
TheRatG Aug 5, 2013
1f1b664
namespace
TheRatG Aug 6, 2013
fee0c0b
Path, console
TheRatG Aug 9, 2013
29bff28
gen command
TheRatG Aug 9, 2013
2c4c88d
fix tests
TheRatG Aug 12, 2013
8d2a30f
refactor
TheRatG Aug 12, 2013
95cb1f0
Base classes for office
TheRatG Aug 13, 2013
8c3c35f
update class command test
TheRatG Aug 13, 2013
4491494
header, request
TheRatG Aug 13, 2013
504166e
log
TheRatG Aug 13, 2013
94409f4
template
TheRatG Aug 14, 2013
e41851e
template
TheRatG Aug 16, 2013
f91da2d
rename app
TheRatG Aug 19, 2013
bf0ad44
rename app
TheRatG Aug 19, 2013
48e6631
added bootstrap example
TheRatG Aug 19, 2013
80991ad
new test
TheRatG Aug 29, 2013
ddb378b
rm
TheRatG Sep 2, 2013
0776733
added composer
TheRatG Sep 2, 2013
40ec672
Update composer.json
TheRatG Sep 2, 2013
8476d5b
Miao with composer
TheRatG Sep 2, 2013
542eea6
Console
TheRatG Sep 2, 2013
3a22c37
Office
TheRatG Sep 2, 2013
1da3b39
Factory
TheRatG Sep 4, 2013
04853d9
added office
TheRatG Sep 4, 2013
a12ceb2
Index
TheRatG Sep 4, 2013
f4a432f
log, template
TheRatG Sep 4, 2013
8732621
Office\View, Office\ViewBlock
TheRatG Sep 5, 2013
322f278
Index
TheRatG Sep 6, 2013
cae7fa5
del phpunit
TheRatG Sep 6, 2013
25779d3
template command
TheRatG Sep 6, 2013
4a5684f
generate tmpl
TheRatG Sep 6, 2013
a3e7dbd
response with header
TheRatG Sep 10, 2013
a053c73
fix tests
TheRatG Sep 10, 2013
9343875
fix notice
TheRatG Sep 10, 2013
3f0c07c
fix tests
TheRatG Sep 10, 2013
17d4ae4
added debug
TheRatG Sep 10, 2013
8b6b163
fix index, fix tests
TheRatG Sep 10, 2013
8761834
move init
TheRatG Sep 10, 2013
d5d78dc
new method
TheRatG Sep 11, 2013
38bbda0
addd monolog
TheRatG Sep 11, 2013
70fb53e
logger
TheRatG Sep 11, 2013
82fc903
fix
TheRatG Sep 11, 2013
faf9eaa
includes
TheRatG Sep 12, 2013
5ecf8c1
logger for native
TheRatG Sep 12, 2013
ebf09f7
bug fix
TheRatG Sep 13, 2013
a5e69ce
router first
TheRatG Sep 13, 2013
5ca84a2
request
TheRatG Sep 16, 2013
6c6f965
bug fix
TheRatG Sep 16, 2013
d202248
Move rules
TheRatG Sep 16, 2013
0b89e38
change interface
TheRatG Sep 16, 2013
c74d8dd
fix tests
TheRatG Sep 17, 2013
db9c356
new router methods
TheRatG Sep 17, 2013
4f60a45
router clasmap
TheRatG Sep 17, 2013
da1006d
fix numeric
TheRatG Sep 18, 2013
877e179
fix for main
TheRatG Sep 18, 2013
b78b02e
bug fix
TheRatG Sep 18, 2013
9ad7c28
code style fix
TheRatG Sep 25, 2013
a494ca1
empty class
TheRatG Sep 26, 2013
188e0c3
move from 4.0
TheRatG Sep 26, 2013
ebfc563
session
TheRatG Sep 26, 2013
865ffdf
complete auth and session and acl
TheRatG Sep 27, 2013
b3bc387
notice fix, change interface
TheRatG Oct 2, 2013
3869ccb
update composer
TheRatG Oct 8, 2013
625abe5
inspect code
TheRatG Oct 8, 2013
15355cc
spelling
TheRatG Oct 8, 2013
dfa15f4
inspect code
TheRatG Oct 8, 2013
27b7816
fix class resolver
TheRatG Oct 8, 2013
11c586c
new methods for App
TheRatG Oct 15, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
data/config*
scripts/miao.php
modules/Env/data/*
modules/Env/data/*
/tmp/
composer.lock
/vendor/
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Miao

## 4.0
* Namespace support
* Rename TemplateEngine to Template
* [30] Autoload. Fatal error if did not find class with namespace
* [29] Autoload, need method classExists()
* [15] Autoload doesn't work with namespaces

## 3.3 (master)
* [22]
* [18] Miao_Router
Expand Down
14 changes: 6 additions & 8 deletions README.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
== Maio
== Miao
PHP фреймоворк

== Installing/Configuring
Expand All @@ -18,15 +18,13 @@ http://www.phpunit.de/manual/current/en/installation.html

-----
pear config-set auto_discover 1;
pear install --alldeps pear.phpunit.de/PHPUnit
pear install pear.phpunit.de/PHPUnit --alldeps
pear install phpunit/PHPUnit_Selenium
pear install phpunit/PHPUnit_Story
-----

=== Test
Убеждаемся в том что все необходимое установлено, запускаем тесты.
-----
php scripts/test.php -d Miao
-----

=== TODO

Merge with trunk
phpunit
-----
3 changes: 0 additions & 3 deletions build/templates/scripts/console.tpl

This file was deleted.

61 changes: 0 additions & 61 deletions build/templates/scripts/test.php.tpl

This file was deleted.

22 changes: 22 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name" : "theratg/miao",
"description": "PHP framework",
"version" : "4.1.0",
"authors" : [
{
"name" : "Vladimir",
"email" : "TheRatW@gmail.com"
}
],
"license": "MIT",
"minimum-stability" : "stable",
"require" : {
"symfony/console" : "2.3",
"monolog/monolog" : ">=1.6"
},
"autoload" : {
"classmap" : [
"modules"
]
}
}
15 changes: 0 additions & 15 deletions data/config.dev.php

This file was deleted.

87 changes: 0 additions & 87 deletions modules/Acl/classes/Acl.class.php

This file was deleted.

92 changes: 92 additions & 0 deletions modules/Acl/classes/Acl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?php
/**
* @author vpak
* @date 2013-09-26 10:14:09
*/

namespace Miao;

class Acl
{
/**
* @var \Miao\Acl\Adapter\AdapterInterface
*/
protected $_adapter;

/**
* @param \Miao\Acl\Adapter\AdapterInterface $adapter
*/
public function __construct( \Miao\Acl\Adapter\AdapterInterface $adapter )
{
$this->_adapter = $adapter;
}

/**
* @param string $group
* @param $resource
* @param string $privilege
* @return bool
*/
public function isAllowed( $group, $resource, $privilege = null )
{
return $this->_adapter->isAllowed( $group, $resource, $privilege );
}

/**
* @param string $group
* @return \Miao\Acl\Adapter\AdapterInterface
*/
public function addGroup( $group )
{
return $this->_adapter->addGroup( $group );
}

/**
* @param string $group
* @return \Miao\Acl\Adapter\AdapterInterface
*/
public function deleteGroup( $group )
{
return $this->_adapter->deleteGroup( $group );
}

/**
* @param $resource
* @return \Miao\Acl\Adapter\AdapterInterface
*/
public function addResource( $resource )
{
return $this->_adapter->addResource( $resource );
}

/**
* @param string $resource
* @return \Miao\Acl\Adapter\AdapterInterface
*/
public function delete( $resource )
{
return $this->_adapter->delete( $resource );
}

/**
* @param string $group
* @param string $resource
* @param array $privileges
* @return \Miao\Acl\Adapter\AdapterInterface
*/
public function allow( $group = null, $resource = null, array $privileges = array() )
{
return $this->_adapter->allow( $group, $resource, $privileges );
}

/**
* @param string $group
* @param string $resource
* @param array $privileges
* @return \Miao\Acl\Adapter\AdapterInterface
*/
public function deny( $group = null, $resource = null, array $privileges = array() )
{
return $this->_adapter->deny( $group, $resource, $privileges );
}
}
27 changes: 27 additions & 0 deletions modules/Acl/classes/AclInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
* User: vpak
* Date: 26.09.13
* Time: 10:33
*/

namespace Miao;

interface AclInterface
{
/**
* @param string $group
* @param string $resource
* @param string $privilege
* @return bool
*/
public function isAllowed( $group = null, $resource = null, $privilege = '' );

public function allow( $group = null, $resource = null, array $privileges = array() );

public function deny( $group = null, $resource = null, array $privileges = array() );

public function addResource( $resource );

public function addGroup( $group );
}
Loading