public function create(Application $application)
    {
        $rows = $this->getRows();
        $id = sizeof($rows) + 1;

        $rows[] = array(
            'id' => $id,
            'name' => $application->getName(),
            'url' => $application->getUrl()
        );

        file_put_contents($this->filename, Yaml::dump($rows));
    }
public function create(Application $application)
    {
        $rows = $this->getRows();
        $id = sizeof($rows) + 1;

        $rows[] = array(
            'id' => $id,
            'name' => $application->getName(),
            'url' => $application->getUrl()
        );

        file_put_contents($this->filename, Yaml::dump($rows));
    }
public function create ( Application $ application ) { $ rows = $ this -> getRows ( ) ; $ id = sizeof ( $ rows ) + 1 ; $ rows [ ] = array ( 'id' => $ id , 'name' => $ application -> getName ( ) , 'url' => $ application -> getUrl ( ) ) ; file_put_contents ( $ this -> filename , Yaml :: dump ( $ rows ) ) ; }
Create an application

@param Application $application
@return mixed
Create an application