Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Oct 27, 2011
  1. [from now] 2011年 10月28日 金曜日 01時35分15秒 JST

    authored
    diff --git a/Dumper/DumpableInterface.php b/Dumper/DumpableInterface.php
    new file mode 100644
    index 0000000..9893d2e
    --- /dev/null
    +++ b/Dumper/DumpableInterface.php
    @@ -0,0 +1,8 @@
    +<?php
    +namespace Xnni\Bundle\UtilBundle\Dumper;
    +
    +interface DumpableInterface
    +{
    +    const  SPACE = '{space}';
    +    public function dump($indent = 0);
    +}
    diff --git a/Password/Generator.php b/Password/Generator.php
    new file mode 100644
    index 0000000..00b7622
    --- /dev/null
    +++ b/Password/Generator.php
    @@ -0,0 +1,30 @@
    +<?php
    +namespace Xnni\Bundle\UtilBundle\Password;
    +
    +require_once 'Text/Password.php';
    +
    +/**
    + * @author Hidenori Goto <hidenorigoto@gmail.com>
    + */
    +class Generator
    +{
    +    const PASSWORD_CHAR = "2,3,4,5,6,7,8,a,b,c,d,e,f,g,h,i,j,k,m,n,o,p,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,J,K,L,M,N,P,Q,R,S,T,U,V,W,X,Y,Z";
    +
    +    /**
    +     * パスワード生成
    +     *
    +     * @param integer $length 生成するパスワードの桁数
    +     *
    +     * @return string
    +     */
    +    public static function generate($length = 10)
    +    {
    +        if (!class_exists('Text_Password')) {
    +            throw new \RuntimeException('Text_Password library does not exists.');
    +        }
    +
    +        $obj = new \Text_Password();
    +        return $obj->create($length, "unpronounceable", self::PASSWORD_CHAR);
    +    }
    +}
    +
    diff --git a/Registry/RegistryAwareInterface.php b/Registry/RegistryAwareInterface.php
    new file mode 100644
    index 0000000..340311d
    --- /dev/null
    +++ b/Registry/RegistryAwareInterface.php
    @@ -0,0 +1,7 @@
    +<?php
    +namespace Xnni\Bundle\UtilBundle\Registry;
    +
    +interface RegistryAwareInterface
    +{
    +    public function setRegistry(RegistryInterface $registry);
    +}
    diff --git a/Registry/RegistryInterface.php b/Registry/RegistryInterface.php
    new file mode 100644
    index 0000000..556ba47
    --- /dev/null
    +++ b/Registry/RegistryInterface.php
    @@ -0,0 +1,10 @@
    +<?php
    +namespace Xnni\Bundle\UtilBundle\Registry;
    +
    +use Symfony\Component\DependencyInjection\ContainerInterface;
    +use Symfony\Component\DependencyInjection\ContainerAwareInterface;
    +
    +interface RegistryInterface extends ContainerAwareInterface
    +{
    +
    +}
Commits on Aug 7, 2011
Commits on Jun 25, 2011
Commits on Jun 19, 2011
  1. updated readme

    authored
  2. added list-versions command

    authored
    Now supports:
    - Symfony2
    - Doctrine2 Common
    - Doctrine2 ORM
    - Doctrine2 DBAL
    - Twig
  3. changed command name

    authored
Commits on May 7, 2011
Commits on Apr 9, 2011
Commits on Mar 16, 2011
  1. modified markup

    authored
Commits on Feb 27, 2011
  1. added

    authored
Commits on Feb 15, 2011
  1. fixed PHPDoc

    authored
  2. updated readme

    authored
  3. first commit

    authored
Something went wrong with that request. Please try again.