public function resolve()
    {
        $this->page
            ->setName($this->name)
            ->setOnline(!empty($this->online))
            ->setTitle($this->title)
            ->setMeta(array('title' => $this->title))
            ->setPath($this->getFullPath())
        ;

        $this->assertEntityIsValid($this->page, array('Page', 'creation'));

        $this->fireEvent(
            PageEvents::PAGE_CREATED,
            new PageEvent($this->page, $this)
        );

        return $this->page;
    }
public function resolve()
    {
        $this->page
            ->setName($this->name)
            ->setOnline(!empty($this->online))
            ->setTitle($this->title)
            ->setMeta(array('title' => $this->title))
            ->setPath($this->getFullPath())
        ;

        $this->assertEntityIsValid($this->page, array('Page', 'creation'));

        $this->fireEvent(
            PageEvents::PAGE_CREATED,
            new PageEvent($this->page, $this)
        );

        return $this->page;
    }
public function resolve ( ) { $ this -> page -> setName ( $ this -> name ) -> setOnline ( ! empty ( $ this -> online ) ) -> setTitle ( $ this -> title ) -> setMeta ( array ( 'title' => $ this -> title ) ) -> setPath ( $ this -> getFullPath ( ) ) ; $ this -> assertEntityIsValid ( $ this -> page , array ( 'Page' , 'creation' ) ) ; $ this -> fireEvent ( PageEvents :: PAGE_CREATED , new PageEvent ( $ this -> page , $ this ) ) ; return $ this -> page ; }
Page creation method.

@return Page
Page creation method .